From 0da770d9660919b03553374d36ce1d5ca93cf78f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 23 Jun 2016 15:06:40 -0700 Subject: add shared-constants.h for wasm constants --- src/wasm-s-parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wasm-s-parser.h') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 0893a5bba..b31b727b7 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -28,6 +28,7 @@ #include "wasm.h" #include "wasm-binary.h" +#include "shared-constants.h" #include "asmjs/shared-constants.h" #include "mixed_arena.h" #include "parsing.h" @@ -41,7 +42,7 @@ using namespace cashew; // Globals -int unhex(char c) { +inline int unhex(char c) { if (c >= '0' && c <= '9') return c - '0'; if (c >= 'a' && c <= 'f') return c - 'a' + 10; if (c >= 'A' && c <= 'F') return c - 'A' + 10; -- cgit v1.2.3