aboutsummaryrefslogtreecommitdiff
path: root/vendor/wasm
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2024-01-18 10:26:43 +0100
committerDamian Tarnawski <gthetarnav@gmail.com>2024-01-18 10:26:43 +0100
commit9cb02aa51d45bceb31aac658fa772e89fa3b7ae9 (patch)
treeb132e97036883b4ee0a88d5faa39737d06d5c6d3 /vendor/wasm
parent190103883caf45093670b9651f0a0a79c2690782 (diff)
Add missing Resize_Non_Zeroed case to page allocator
Diffstat (limited to 'vendor/wasm')
-rw-r--r--vendor/wasm/js/memory_js.odin2
1 files changed, 1 insertions, 1 deletions
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: