Merge pull request #2204 from colrdavidson/fix_wasm_mem

fix missing wasm memory case
This commit is contained in:
gingerBill
2022-11-19 10:17:40 +00:00
committed by GitHub

View File

@@ -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: