diff options
author | Soni L <EnderMoneyMod@gmail.com> | 2024-02-01 12:56:08 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 07:56:08 -0800 |
commit | e4a6d92191fa5b4b1aab5643dbabbe76c93427a5 (patch) | |
tree | 51ed2f35ffa3c54f64dafbdf5aefa3ba0e5e5f7d | |
parent | 38860a9fa7c4d247f73a1e0b161adb0b700731bf (diff) | |
download | wabt-e4a6d92191fa5b4b1aab5643dbabbe76c93427a5.tar.gz wabt-e4a6d92191fa5b4b1aab5643dbabbe76c93427a5.tar.bz2 wabt-e4a6d92191fa5b4b1aab5643dbabbe76c93427a5.zip |
Add missing casts on big-endian (#2381)
-rw-r--r-- | wasm2c/wasm-rt-mem-impl-helper.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wasm2c/wasm-rt-mem-impl-helper.inc b/wasm2c/wasm-rt-mem-impl-helper.inc index 5cd503c7..2c351296 100644 --- a/wasm2c/wasm-rt-mem-impl-helper.inc +++ b/wasm2c/wasm-rt-mem-impl-helper.inc @@ -122,8 +122,8 @@ static uint64_t MEMORY_API_NAME(grow_memory_impl)(MEMORY_TYPE* memory, #endif #endif #if WABT_BIG_ENDIAN - memmove(new_data + new_size - old_size, new_data, old_size); - memset(new_data, 0, delta_size); + memmove((void*)(new_data + new_size - old_size), (void*)new_data, old_size); + memset((void*)new_data, 0, delta_size); #endif memory->pages = new_pages; memory->size = new_size; |