summaryrefslogtreecommitdiff
path: root/src/binary-error-handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-error-handler.cc')
-rw-r--r--src/binary-error-handler.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/binary-error-handler.cc b/src/binary-error-handler.cc
index c785d2af..5f354e94 100644
--- a/src/binary-error-handler.cc
+++ b/src/binary-error-handler.cc
@@ -25,13 +25,12 @@ BinaryErrorHandlerFile::BinaryErrorHandlerFile(FILE* file,
PrintHeader print_header)
: file_(file), header_(header), print_header_(print_header) {}
-bool BinaryErrorHandlerFile::OnError(uint32_t offset,
- const std::string& error) {
+bool BinaryErrorHandlerFile::OnError(Offset offset, const std::string& error) {
PrintErrorHeader();
- if (offset == WABT_UNKNOWN_OFFSET)
+ if (offset == kInvalidOffset)
fprintf(file_, "error: %s\n", error.c_str());
else
- fprintf(file_, "error: @0x%08x: %s\n", offset, error.c_str());
+ fprintf(file_, "error: @0x%08" PRIzx ": %s\n", offset, error.c_str());
fflush(file_);
return true;
}