From 7076cf69e4e69852ec1a47a95df9dd79312fce93 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Fri, 18 Nov 2022 23:41:47 -0800 Subject: [PATCH] fix missing wasm memory case --- vendor/wasm/js/memory.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/wasm/js/memory.odin b/vendor/wasm/js/memory.odin index 84bb16d01..efbf89445 100644 --- a/vendor/wasm/js/memory.odin +++ b/vendor/wasm/js/memory.odin @@ -21,7 +21,7 @@ page_allocator :: proc() -> mem.Allocator { old_memory: rawptr, old_size: int, location := #caller_location) -> ([]byte, mem.Allocator_Error) { switch mode { - case .Alloc: + case .Alloc, .Alloc_Non_Zeroed: assert(size % PAGE_SIZE == 0) return page_alloc(size/PAGE_SIZE) case .Resize, .Free, .Free_All, .Query_Info: