Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1352)

Unified Diff: src/wasm/wasm-module.cc

Issue 2498633002: Use PRIuS as a placeholder for size_t in a formatter string (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698