diff options
author | Steven Johnson <srj@google.com> | 2020-06-15 12:26:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 12:26:36 -0700 |
commit | 3239018f403d8fe0f20a914032c7fb1bf8c1c358 (patch) | |
tree | 5d15556d0b4d1eabf3e3a2be30f72140d55c29a6 /src/binary-writer-spec.cc | |
parent | 2dca7fc627397636116ad74a31d7aac980095390 (diff) | |
download | wabt-3239018f403d8fe0f20a914032c7fb1bf8c1c358.tar.gz wabt-3239018f403d8fe0f20a914032c7fb1bf8c1c358.tar.bz2 wabt-3239018f403d8fe0f20a914032c7fb1bf8c1c358.zip |
Fix two minor compiler warnings (#1462)
- writing a uintptr_t should use PRIuPTR, not PRIu64
- add explicit `override` to ~FileStream
Diffstat (limited to 'src/binary-writer-spec.cc')
-rw-r--r-- | src/binary-writer-spec.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-writer-spec.cc b/src/binary-writer-spec.cc index 4499e0ff..13e71122 100644 --- a/src/binary-writer-spec.cc +++ b/src/binary-writer-spec.cc @@ -199,7 +199,7 @@ void BinaryWriterSpec::WriteRefBits(uintptr_t ref_bits) { if (ref_bits == Const::kRefNullBits) { json_stream_->Writef("\"null\""); } else { - json_stream_->Writef("\"%" PRIu64 "\"", ref_bits); + json_stream_->Writef("\"%" PRIuPTR "\"", ref_bits); } } |