Skip to content

Commit 923f60f

Browse files
committed
wasm2c: Fix warning on signed/unsigned comparison
1 parent 373724b commit 923f60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wasm2c/wasm-rt-mem-impl-helper.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ uint64_t MEMORY_API_NAME(wasm_rt_grow_memory)(MEMORY_TYPE* memory,
137137
uint64_t ret = MEMORY_API_NAME(grow_memory_impl)(memory, delta);
138138
MEMORY_LOCK_RELEASE(memory->mem_lock);
139139
#ifdef WASM_RT_GROW_FAILED_HANDLER
140-
if (ret == -1) {
140+
if (ret == (uint64_t)-1) {
141141
WASM_RT_GROW_FAILED_HANDLER();
142142
}
143143
#endif

0 commit comments

Comments
 (0)