summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 05d198bd0..cb043f21b 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -969,6 +969,7 @@ private:
wasm.memory.segments.emplace_back(nextStatic, (const char*)&(*raw)[0], size);
}
nextStatic += size;
+ wasm.memory.initial = nextStatic;
}
void skipImports() {