summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShravan Narayan <shravanrn@gmail.com>2024-03-14 18:31:30 -0500
committerShravan Narayan <shravanrn@gmail.com>2024-03-20 11:32:02 -0500
commit923f60f9328c6af1d6e9be75d66ed59340ecd93b (patch)
tree619f695120feab25275aaea04e4f76d556b25806
parent373724bce78902fc5a4b748d274f04f6d07e212a (diff)
downloadwabt-923f60f9328c6af1d6e9be75d66ed59340ecd93b.tar.gz
wabt-923f60f9328c6af1d6e9be75d66ed59340ecd93b.tar.bz2
wabt-923f60f9328c6af1d6e9be75d66ed59340ecd93b.zip
wasm2c: Fix warning on signed/unsigned comparison
-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