Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 865fc260e38eda4c72733cbec63ac303d0454de0..0b5ef15bc7229ba586b2c2f0e814cdc1a31583ba 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1300,10 +1300,8 @@ class WasmInstanceBuilder { |
if (dest_offset >= mem_size || source_size >= mem_size || |
dest_offset > (mem_size - source_size)) { |
thrower_->TypeError("data segment (start = %" PRIu32 ", size = %" PRIu32 |
- ") does not fit into memory " |
- "(size = %" PRIu64 ")", |
- dest_offset, source_size, |
- static_cast<uint64_t>(mem_size)); |
+ ") does not fit into memory (size = %" PRIuS ")", |
+ dest_offset, source_size, mem_size); |
return; |
} |
byte* dest = mem_addr + dest_offset; |