diff options
author | Dan Gohman <sunfish@mozilla.com> | 2016-05-13 11:20:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-13 11:20:28 -0700 |
commit | 348565b6a9a823c0fee30c96d8d783810d540a78 (patch) | |
tree | abb41a1a8220d5631003fa3b0b72a1060f09bd62 /src/passes/Print.cpp | |
parent | 4a720eca42c463d53db1c81f9957a3e5d9011836 (diff) | |
download | binaryen-348565b6a9a823c0fee30c96d8d783810d540a78.tar.gz binaryen-348565b6a9a823c0fee30c96d8d783810d540a78.tar.bz2 binaryen-348565b6a9a823c0fee30c96d8d783810d540a78.zip |
Fix the maximum memory size to be valid. (#492)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 85ecd9724..aa0657727 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -491,7 +491,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> { incIndent(); doIndent(o, indent); printOpening(o, "memory") << " " << curr->memory.initial; - if (curr->memory.max && curr->memory.max != (uint32_t)-1) o << " " << curr->memory.max; + if (curr->memory.max && curr->memory.max != Memory::kMaxSize) o << " " << curr->memory.max; for (auto segment : curr->memory.segments) { o << maybeNewLine; o << (minify ? "" : " ") << "(segment " << segment.offset << " \""; |