Skip to content

Commit 76c1448

Browse files
committed
fix: correct module parameter in instruction limit exception handling
1 parent 56526e9 commit 76c1448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/interpreter/wasm_interp_fast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ typedef float64 CellType_F64;
104104
#if WASM_INSTRUCTION_METERING != 0
105105
#define CHECK_INSTRUCTION_LIMIT() \
106106
if (instructions_left == 0) { \
107-
wasm_set_exception(module_inst, "instruction limit exceeded"); \
107+
wasm_set_exception(module, "instruction limit exceeded"); \
108108
goto got_exception; \
109109
} \
110110
else if (instructions_left > 0) \

0 commit comments

Comments
 (0)