summaryrefslogtreecommitdiff
path: root/wasm2c
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c')
-rw-r--r--wasm2c/wasm-rt-mem-impl-helper.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasm2c/wasm-rt-mem-impl-helper.inc b/wasm2c/wasm-rt-mem-impl-helper.inc
index 2c351296..59bfe712 100644
--- a/wasm2c/wasm-rt-mem-impl-helper.inc
+++ b/wasm2c/wasm-rt-mem-impl-helper.inc
@@ -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