diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2022-11-18 23:41:47 -0800 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2022-11-18 23:41:47 -0800 |
| commit | 7076cf69e4e69852ec1a47a95df9dd79312fce93 (patch) | |
| tree | 7b7a2ef88a1f428f0d79c19fa544f0880cce3939 | |
| parent | 15bbdb2030510b9d15918536c7da8af3a376c0be (diff) | |
fix missing wasm memory case
| -rw-r--r-- | vendor/wasm/js/memory.odin | 2 |
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: |