aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Davidson <colrdavidson@gmail.com>2022-11-18 23:41:47 -0800
committerColin Davidson <colrdavidson@gmail.com>2022-11-18 23:41:47 -0800
commit7076cf69e4e69852ec1a47a95df9dd79312fce93 (patch)
tree7b7a2ef88a1f428f0d79c19fa544f0880cce3939
parent15bbdb2030510b9d15918536c7da8af3a376c0be (diff)
fix missing wasm memory case
-rw-r--r--vendor/wasm/js/memory.odin2
1 files changed, 1 insertions, 1 deletions
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: