diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-05-26 14:09:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 14:09:35 -0700 |
commit | 91b90b76ea870cf96b2853b54cbe42ff46e387bf (patch) | |
tree | aad7baa282a19f81d8f5fc32c4b4ebdedd82a07b /src/tools/asm2wasm.cpp | |
parent | 74339e385ba31b6c61cbdc93262659b70cde9487 (diff) | |
download | binaryen-91b90b76ea870cf96b2853b54cbe42ff46e387bf.tar.gz binaryen-91b90b76ea870cf96b2853b54cbe42ff46e387bf.tar.bz2 binaryen-91b90b76ea870cf96b2853b54cbe42ff46e387bf.zip |
allow --total-memory to be greater than a signed int32 (#1565)
Diffstat (limited to 'src/tools/asm2wasm.cpp')
-rw-r--r-- | src/tools/asm2wasm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/asm2wasm.cpp b/src/tools/asm2wasm.cpp index 986e50c50..1cf7947ce 100644 --- a/src/tools/asm2wasm.cpp +++ b/src/tools/asm2wasm.cpp @@ -138,7 +138,7 @@ int main(int argc, const char *argv[]) { const auto &tm_it = options.extra.find("total memory"); size_t totalMemory = - tm_it == options.extra.end() ? 16 * 1024 * 1024 : atoi(tm_it->second.c_str()); + tm_it == options.extra.end() ? 16 * 1024 * 1024 : atoll(tm_it->second.c_str()); if (totalMemory & ~Memory::kPageMask) { std::cerr << "Error: total memory size " << totalMemory << " is not a multiple of the 64k wasm page size\n"; |