summaryrefslogtreecommitdiff
path: root/gen_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-05-04 21:00:25 -0700
committerMichael Pavone <pavone@retrodev.com>2017-05-04 21:00:25 -0700
commit274dececcc084ba86026d8ac3f18edf915f79f24 (patch)
treec063f307948d8f8cef0a056775bb9c2b6fd3308b /gen_x86.c
parentd9b6185d61f9791e4addda901a2137f253d965dd (diff)
Fix some inconsequential issues in code for executable memory allocation noticed while tracking down a different issue
Diffstat (limited to 'gen_x86.c')
-rw-r--r--gen_x86.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gen_x86.c b/gen_x86.c
index 2da8055..2840ba0 100644
--- a/gen_x86.c
+++ b/gen_x86.c
@@ -207,7 +207,6 @@ void check_alloc_code(code_info *code, uint32_t inst_size)
//new chunk is not contiguous with the current one
jmp_nocheck(code, next_code);
code->cur = next_code;
- code->last = next_code + size/sizeof(RESERVE_WORDS);
}
code->last = next_code + size/sizeof(code_word) - RESERVE_WORDS;
}