From 859686c79388b5c34022a8bf8d7794480c9ad2bd Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 11 Oct 2016 16:21:06 -0700 Subject: remove memory maximum in asm2wasm when memory growth is on --- src/asm2wasm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3