diff backend_x86.c @ 1511:2a5649a767e7

Fix accidental add to RSP with SZ_D and SZ_PTR. Using SZ_D breakse when the stack is located outside of the 32-bit addressable range
author Michael Pavone <pavone@retrodev.com>
date Sun, 31 Dec 2017 14:08:47 -0800
parents 5d41d0574863
children 45c4b74e7676
line wrap: on
line diff
--- a/backend_x86.c	Sun Dec 31 09:53:33 2017 -0800
+++ b/backend_x86.c	Sun Dec 31 14:08:47 2017 -0800
@@ -244,7 +244,7 @@
 						if (is_write && (memmap[chunk].flags & MMAP_CODE)) {
 							pop_r(code, opts->scratch2);
 						} else {
-							add_ir(code, sizeof(void*), RSP, SZ_D);
+							add_ir(code, sizeof(void*), RSP, SZ_PTR);
 							code->stack_off -= sizeof(void *);
 						}
 					} else {