diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 9b503c84d..9bf677e6f 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -981,6 +981,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { // apply memory growth, if relevant if (memoryGrowth) { emscripten::generateMemoryGrowthFunction(wasm); + wasm.memory.max = Memory::kMaxSize; } #if 0 |