From 1e783f3e96f904b88b692522de04f786feaf41a0 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 11 Oct 2016 14:40:23 -0700 Subject: allow a maximum 0 size for a table --- 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 33b5f5d16..075d013e5 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -615,7 +615,7 @@ struct PrintSExpression : public Visitor { void printTableHeader(Table* curr) { printOpening(o, "table") << ' '; o << curr->initial; - if (curr->max && curr->max != Table::kMaxSize) o << ' ' << curr->max; + if (curr->max != Table::kMaxSize) o << ' ' << curr->max; o << " anyfunc)"; } void visitTable(Table *curr) { -- cgit v1.2.3