aboutsummaryrefslogtreecommitdiffstats
path: root/asm/segalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/segalloc.c')
-rw-r--r--asm/segalloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/asm/segalloc.c b/asm/segalloc.c
index e81f919d..5b4ea4bb 100644
--- a/asm/segalloc.c
+++ b/asm/segalloc.c
@@ -40,10 +40,10 @@
#include "nasmlib.h"
#include "insns.h"
-static int32_t next_seg = 0;
+static int32_t next_seg = 2;
void seg_alloc_reset(void)
{
- next_seg = 0;
+ next_seg = 2;
}
int32_t seg_alloc(void)
@@ -51,6 +51,5 @@ int32_t seg_alloc(void)
int32_t this_seg = next_seg;
next_seg += 2;
-
return this_seg;
}