Skip to content

Commit

Permalink
fix: uint64 opcodes print as %llu
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Dec 2, 2023
1 parent 2428315 commit 2008bd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/binary-reader-objdump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ Result BinaryReaderObjdumpDisassemble::OnOpcodeUint64(uint64_t value) {
if (!in_function_body) {
return Result::Ok;
}
LogOpcode("%" PRId64, value);
LogOpcode("%" PRIu64, value);
return Result::Ok;
}

Expand Down
8 changes: 4 additions & 4 deletions test/dump/const.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ Code Disassembly:
00002f: 1a | drop
000030: 42 00 | i64.const 0
000032: 1a | drop
000033: 42 80 80 80 80 80 80 80 80 | i64.const -9223372036854775808
000033: 42 80 80 80 80 80 80 80 80 | i64.const 9223372036854775808
00003c: 80 7f |
00003e: 1a | drop
00003f: 42 7f | i64.const -1
00003f: 42 7f | i64.const 18446744073709551615
000041: 1a | drop
000042: 42 80 80 80 80 80 80 80 80 | i64.const -9223372036854775808
000042: 42 80 80 80 80 80 80 80 80 | i64.const 9223372036854775808
00004b: 80 7f |
00004d: 1a | drop
00004e: 42 7f | i64.const -1
00004e: 42 7f | i64.const 18446744073709551615
000050: 1a | drop
000051: 43 00 00 00 00 | f32.const 0x0p+0
000056: 1a | drop
Expand Down

0 comments on commit 2008bd8

Please sign in to comment.