summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-11 14:40:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-10-11 15:01:04 -0700
commit1e783f3e96f904b88b692522de04f786feaf41a0 (patch)
tree1733305ab97e113b137107d7711c56c0a3652310 /src/passes/Print.cpp
parenta3dc8bf8cba7cd1b5ece8abf0489a9dcacfa3f2e (diff)
downloadbinaryen-1e783f3e96f904b88b692522de04f786feaf41a0.tar.gz
binaryen-1e783f3e96f904b88b692522de04f786feaf41a0.tar.bz2
binaryen-1e783f3e96f904b88b692522de04f786feaf41a0.zip
allow a maximum 0 size for a table
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 33b5f5d16..075d013e5 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -615,7 +615,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
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) {