mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Add missing Resize_Non_Zeroed case to page allocator
This commit is contained in:
2
vendor/wasm/js/memory_js.odin
vendored
2
vendor/wasm/js/memory_js.odin
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user