summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s2wasm.h2
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];