diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-12 11:32:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 11:32:19 -0700 |
commit | a08ccc3cdc2e53354f0eaeba419655b641b2b056 (patch) | |
tree | 23e046ab21ac13c5b1ba522463bf0b6fc3e1da98 /src | |
parent | 2aad55d7fd4c8ad99d06937ab6838b0a0455e10a (diff) | |
download | binaryen-a08ccc3cdc2e53354f0eaeba419655b641b2b056.tar.gz binaryen-a08ccc3cdc2e53354f0eaeba419655b641b2b056.tar.bz2 binaryen-a08ccc3cdc2e53354f0eaeba419655b641b2b056.zip |
fix bug where we set memory max to the initial value if the max wasn't specified (#760)
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-s-parser.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 3e09d4f6f..fda413f80 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -1689,8 +1689,6 @@ private: } if (j < inner.size()) { wasm.memory.max = atoi(inner[j++]->c_str()); - } else { - wasm.memory.max = wasm.memory.initial; } } wasm.addImport(im.release()); |