diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-11 14:40:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-10-11 15:01:04 -0700 |
commit | 1e783f3e96f904b88b692522de04f786feaf41a0 (patch) | |
tree | 1733305ab97e113b137107d7711c56c0a3652310 /src/passes/Print.cpp | |
parent | a3dc8bf8cba7cd1b5ece8abf0489a9dcacfa3f2e (diff) | |
download | binaryen-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.cpp | 2 |
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) { |