about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-03 13:51:56 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-10-03 13:51:56 +0200
commit0e91ad3ed3f2720b988d6aefec0d09b0cadf6dad (patch)
tree176891e2b25afc840ba0ba0ecb78e49f461da948 /src/emu
parentc5e894aab2ef924f4f8c3d7a65932e2c68c3086c (diff)
downloadbox64-0e91ad3ed3f2720b988d6aefec0d09b0cadf6dad.tar.gz
box64-0e91ad3ed3f2720b988d6aefec0d09b0cadf6dad.zip
[BOX32] Fixed scanf type function when grabing long/ptr type of data
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64emu_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/x64emu_private.h b/src/emu/x64emu_private.h
index 6b6c75e7..0c02f5ed 100644
--- a/src/emu/x64emu_private.h
+++ b/src/emu/x64emu_private.h
@@ -58,6 +58,8 @@ typedef struct emu_flags_s {
 #define JUMPBUFF struct __jmp_buf_tag
 #endif
 
+#define N_SCRATCH 200
+
 typedef struct x64emu_s {
     // cpu
     reg64_t     regs[16];
@@ -119,7 +121,7 @@ typedef struct x64emu_s {
     #endif
     // scratch stack, used for alignment of double and 64bits ints on arm. 200 elements should be enough
     __int128_t  dummy_align;    // here to have scratch 128bits aligned
-    uint64_t    scratch[200];
+    uint64_t    scratch[N_SCRATCH];
     // local stack, do be deleted when emu is freed
     void*       stack2free; // this is the stack to free (can be NULL)
     void*       init_stack; // initial stack (owned or not)