summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-04 15:45:10 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-04 15:45:10 -0800
commit9390921427885c22133933fb0b93d4ee39c3e726 (patch)
treeed197352d4828a30b6df3960b612365d048ce3b9 /src/wasm.h
parent2bb4b33e296f999d45b95b2252dfaa11e2ea61b5 (diff)
downloadbinaryen-9390921427885c22133933fb0b93d4ee39c3e726.tar.gz
binaryen-9390921427885c22133933fb0b93d4ee39c3e726.tar.bz2
binaryen-9390921427885c22133933fb0b93d4ee39c3e726.zip
memory fixes
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 8b2f9ad94..b9115a51a 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -828,7 +828,8 @@ public:
printOpening(o, "module", true);
incIndent(o, indent);
doIndent(o, indent);
- printOpening(o, "memory") << " " << module.memory.initial << " " << module.memory.max;
+ printOpening(o, "memory") << " " << module.memory.initial;
+ if (module.memory.max) o << " " << module.memory.max;
for (auto segment : module.memory.segments) {
o << " (segment " << segment.offset << " \"" << segment.data << "\")";
}