From 348565b6a9a823c0fee30c96d8d783810d540a78 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 13 May 2016 11:20:28 -0700 Subject: Fix the maximum memory size to be valid. (#492) --- src/passes/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/Print.cpp') 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 { 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 << " \""; -- cgit v1.2.3