mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Set allocator in base:runtime/core_builtin: make_map_cap & base:runtime/core_builtin_soa: make_soa_dynamic_array_len
This commit is contained in:
@@ -403,6 +403,7 @@ make_map_cap :: proc($T: typeid/map[$K]$E, #any_int capacity: int, allocator :=
|
||||
make_map_expr_error_loc(loc, capacity)
|
||||
context.allocator = allocator
|
||||
|
||||
m.allocator = allocator
|
||||
err = reserve_map(&m, capacity, loc)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user