diff --git a/core/iwasm/interpreter/wasm_interp_classic.c b/core/iwasm/interpreter/wasm_interp_classic.c index eb00b2dfc..219f30726 100644 --- a/core/iwasm/interpreter/wasm_interp_classic.c +++ b/core/iwasm/interpreter/wasm_interp_classic.c @@ -1574,7 +1574,7 @@ get_global_addr(uint8 *global_data, WASMGlobalInstance *global) wasm_set_exception(module, "instruction limit exceeded"); \ goto got_exception; \ } \ - else if (instructions_left > 0) \ + if (instructions_left > 0) \ instructions_left--; #else #define CHECK_INSTRUCTION_LIMIT() (void)0 diff --git a/core/iwasm/interpreter/wasm_interp_fast.c b/core/iwasm/interpreter/wasm_interp_fast.c index 8bac1504c..94d392cfe 100644 --- a/core/iwasm/interpreter/wasm_interp_fast.c +++ b/core/iwasm/interpreter/wasm_interp_fast.c @@ -107,7 +107,7 @@ typedef float64 CellType_F64; wasm_set_exception(module, "instruction limit exceeded"); \ goto got_exception; \ } \ - else if (instructions_left > 0) \ + if (instructions_left > 0) \ instructions_left--; #else