diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-17 10:57:25 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-17 10:57:25 -0800 |
commit | aac1151e72c416406ed35e8ee74a2e90a8ae189b (patch) | |
tree | da67987b5e2470cbbe0f19088147d414ae7ba0a2 /src/wasm.h | |
parent | f268d8ae74cc6a2b43fcb1b0f47ebbfe09b4b9da (diff) | |
download | binaryen-aac1151e72c416406ed35e8ee74a2e90a8ae189b.tar.gz binaryen-aac1151e72c416406ed35e8ee74a2e90a8ae189b.tar.bz2 binaryen-aac1151e72c416406ed35e8ee74a2e90a8ae189b.zip |
memory max is optional, don't emit it when not necessary
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index 34b16c4ea..516ea9630 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1581,7 +1581,7 @@ public: incIndent(o, indent); doIndent(o, indent); printOpening(o, "memory") << " " << module.memory.initial; - if (module.memory.max) o << " " << module.memory.max; + if (module.memory.max && module.memory.max != (uint32_t)-1) o << " " << module.memory.max; for (auto segment : module.memory.segments) { o << "\n (segment " << segment.offset << " \""; for (size_t i = 0; i < segment.size; i++) { |