From 9cb02aa51d45bceb31aac658fa772e89fa3b7ae9 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Thu, 18 Jan 2024 10:26:43 +0100 Subject: [PATCH] Add missing Resize_Non_Zeroed case to page allocator --- vendor/wasm/js/memory_js.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/wasm/js/memory_js.odin b/vendor/wasm/js/memory_js.odin index cdeb58128..fbb9a0f54 100644 --- a/vendor/wasm/js/memory_js.odin +++ b/vendor/wasm/js/memory_js.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, .Alloc_Non_Zeroed: + case .Alloc, .Alloc_Non_Zeroed, .Resize_Non_Zeroed: assert(size % PAGE_SIZE == 0) return page_alloc(size/PAGE_SIZE) case .Resize, .Free, .Free_All, .Query_Info: