Skip to content

Commit f173354

Browse files
committed
code refactor
1 parent 88a7f16 commit f173354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/iwasm/interpreter/wasm_interp_fast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5079,7 +5079,8 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
50795079
CHECK_BULK_MEMORY_OVERFLOW(dst, len, mdst);
50805080
#if WASM_ENABLE_SHARED_HEAP != 0
50815081
if (app_addr_in_shared_heap((uint64)dst, len))
5082-
dlen = (uint64)get_last_used_shared_heap_end_off() - dst + 1;
5082+
dlen = (uint64)get_last_used_shared_heap_end_off()
5083+
- dst + 1;
50835084
#endif
50845085
#else /* else of OS_ENABLE_HW_BOUND_CHECK */
50855086
#if WASM_ENABLE_SHARED_HEAP != 0

0 commit comments

Comments
 (0)