Skip to content

Commit

Permalink
wasm2c: Fix warning on signed/unsigned comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Mar 20, 2024
1 parent 373724b commit 923f60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasm2c/wasm-rt-mem-impl-helper.inc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ uint64_t MEMORY_API_NAME(wasm_rt_grow_memory)(MEMORY_TYPE* memory,
uint64_t ret = MEMORY_API_NAME(grow_memory_impl)(memory, delta);
MEMORY_LOCK_RELEASE(memory->mem_lock);
#ifdef WASM_RT_GROW_FAILED_HANDLER
if (ret == -1) {
if (ret == (uint64_t)-1) {
WASM_RT_GROW_FAILED_HANDLER();
}
#endif
Expand Down

0 comments on commit 923f60f

Please sign in to comment.