diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-17 20:09:04 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-17 20:09:04 -0800 |
commit | 3369c929b2da94428c6f2055d58236352354af43 (patch) | |
tree | ee71b5f28ffb56eaf28e85d4f5c47b511eb13c67 /src | |
parent | 738feca9aa0ca0b21e47d0a6d9bf5f572902d2a3 (diff) | |
download | binaryen-3369c929b2da94428c6f2055d58236352354af43.tar.gz binaryen-3369c929b2da94428c6f2055d58236352354af43.tar.bz2 binaryen-3369c929b2da94428c6f2055d58236352354af43.zip |
support global offsets in store in s2wasm
Diffstat (limited to 'src')
-rw-r--r-- | src/s2wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index 7b3aa5b49..b59475528 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -483,7 +483,7 @@ private: curr->bytes = bytes > 0 ? bytes : getWasmTypeSize(type); curr->align = curr->bytes; // XXX Name assign = getAssign(); - curr->offset = getInt(); + getConst(&curr->offset); mustMatch("("); auto inputs = getInputs(2); curr->ptr = inputs[0]; |