We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d20081a commit 04f0bd1Copy full SHA for 04f0bd1
core/iwasm/interpreter/wasm_interp_classic.c
@@ -593,8 +593,8 @@ wasm_interp_get_frame_ref(WASMInterpFrame *frame)
593
#endif
594
595
#if WASM_ENABLE_MEMORY64 != 0
596
-#define POP_MEM_OFFSET() (is_memory64 ? POP_I64() : POP_I32())
597
-#define POP_TBL_ELEM_IDX() (is_table64 ? POP_I64() : POP_I32())
+#define POP_MEM_OFFSET() (is_memory64 ? POP_I64() : (uint32)POP_I32())
+#define POP_TBL_ELEM_IDX() (is_table64 ? POP_I64() : (uint32)POP_I32())
598
#else
599
#define POP_MEM_OFFSET() POP_I32()
600
#define POP_TBL_ELEM_IDX() POP_I32()
0 commit comments