diff options
-rw-r--r-- | src/wasm-s-parser.h | 2 | ||||
-rw-r--r-- | src/wasm.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index b8dbdfd69..d50cedd92 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -794,7 +794,7 @@ private: if (str[0] == 'a') { ret->align = atoi(eq); } else if (str[0] == 'o') { - ret->offset = atoi(eq); + ret->offset = atol(eq); // XXX https://github.com/WebAssembly/spec/issues/161 } else onError(); i++; } diff --git a/src/wasm.h b/src/wasm.h index 38a08a27e..2794f868c 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -530,7 +530,7 @@ public: unsigned bytes; bool signed_; - uint32_t offset; + uint64_t offset; // XXX https://github.com/WebAssembly/spec/issues/161 unsigned align; Expression *ptr; |