diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-11-13 10:54:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-12-07 16:50:03 -1000 |
commit | 22f7562e2291c6b8f377c41dd5af797c4bb9df4e (patch) | |
tree | 52550e7c250afce7edb879f1ec15454ea0de25a7 /src/wasm/wasm-s-parser.cpp | |
parent | e0d5a85961d21d651298d6f069a3753e011aa280 (diff) | |
download | binaryen-22f7562e2291c6b8f377c41dd5af797c4bb9df4e.tar.gz binaryen-22f7562e2291c6b8f377c41dd5af797c4bb9df4e.tar.bz2 binaryen-22f7562e2291c6b8f377c41dd5af797c4bb9df4e.zip |
fix table import size when no maximum is provided
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r-- | src/wasm/wasm-s-parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index 5898cc252..3fcb85c6b 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -1573,7 +1573,7 @@ void SExpressionWasmBuilder::parseImport(Element& s) { if (j < inner.size() - 1) { wasm.table.max = atoi(inner[j++]->c_str()); } else { - wasm.table.max = wasm.table.initial; + wasm.table.max = Table::kMaxSize; } // ends with the table element type } else if (im->kind == ExternalKind::Memory) { |