diff options
Diffstat (limited to 'src/binary-error-handler.h')
-rw-r--r-- | src/binary-error-handler.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/binary-error-handler.h b/src/binary-error-handler.h index 2186ecbe..6dc5e669 100644 --- a/src/binary-error-handler.h +++ b/src/binary-error-handler.h @@ -21,6 +21,8 @@ #include <cstdio> #include <string> +#include "common.h" + namespace wabt { class BinaryErrorHandler { @@ -28,7 +30,7 @@ class BinaryErrorHandler { virtual ~BinaryErrorHandler() {} // Returns true if the error was handled. - virtual bool OnError(uint32_t offset, const std::string& error) = 0; + virtual bool OnError(Offset offset, const std::string& error) = 0; }; class BinaryErrorHandlerFile : public BinaryErrorHandler { @@ -43,7 +45,7 @@ class BinaryErrorHandlerFile : public BinaryErrorHandler { const std::string& header = std::string(), PrintHeader print_header = PrintHeader::Never); - bool OnError(uint32_t offset, const std::string& error) override; + bool OnError(Offset offset, const std::string& error) override; private: void PrintErrorHeader(); |