summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index abfb4a92d..2a2a36028 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -744,7 +744,7 @@ class S2WasmBuilder {
// may be a relocation
auto curr = allocator.alloc<Const>();
curr->type = curr->value.type = i32;
- getConst((uint32_t*)&curr->value.i32);
+ getConst((uint32_t*)curr->value.geti32Ptr());
setOutput(curr, assign);
} else {
cashew::IString str = getStr();