Commit 787e87a8 authored by ahaas's avatar ahaas Committed by Commit bot

Use PRIuS as a placeholder for size_t in a formatter string

R=mlippautz@chromium.org

Review-Url: https://codereview.chromium.org/2498633002
Cr-Commit-Position: refs/heads/master@{#40952}
parent 297a969a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment