diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 15:45:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-04 15:45:10 -0800 |
commit | 9390921427885c22133933fb0b93d4ee39c3e726 (patch) | |
tree | ed197352d4828a30b6df3960b612365d048ce3b9 /src/wasm.h | |
parent | 2bb4b33e296f999d45b95b2252dfaa11e2ea61b5 (diff) | |
download | binaryen-9390921427885c22133933fb0b93d4ee39c3e726.tar.gz binaryen-9390921427885c22133933fb0b93d4ee39c3e726.tar.bz2 binaryen-9390921427885c22133933fb0b93d4ee39c3e726.zip |
memory fixes
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 3 |
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 << "\")"; } |