|
@@ -615,7 +615,7 @@ shrink_dynamic_array :: proc(array: ^$T/[dynamic]$E, new_cap := -1, loc := #call
|
|
|
old_size := a.cap * size_of(E)
|
|
|
new_size := new_cap * size_of(E)
|
|
|
|
|
|
- new_data, err := mem_resize(a.data, old_size, new_size, align_of(E), allocator, loc)
|
|
|
+ new_data, err := mem_resize(a.data, old_size, new_size, align_of(E), a.allocator, loc)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|