summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp2
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 << " \"";