summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-25 10:42:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-25 18:41:00 -0500
commit0cdd61e4552509a9f06f729421eb5045114cebac (patch)
tree3508baec4475440164890ccea4e113c76fbfc0ad /src/s2wasm.h
parenta62d9e30d85cef666055a3afe33942017766b008 (diff)
downloadbinaryen-0cdd61e4552509a9f06f729421eb5045114cebac.tar.gz
binaryen-0cdd61e4552509a9f06f729421eb5045114cebac.tar.bz2
binaryen-0cdd61e4552509a9f06f729421eb5045114cebac.zip
emit memory size in s2wasm
Diffstat (limited to 'src/s2wasm.h')
-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() {