Browse Source

Add missing Resize_Non_Zeroed case to page allocator

Damian Tarnawski 1 year ago
parent
commit
9cb02aa51d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vendor/wasm/js/memory_js.odin

+ 1 - 1
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: