aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorTetralux <tetraluxonpc@gmail.com>2022-12-11 09:10:17 +0000
committerTetralux <tetraluxonpc@gmail.com>2022-12-11 09:10:17 +0000
commit588c52a8549aa8e8c07213d4e86750bc95c2dab2 (patch)
tree847076570399b738975497a98d6ce240eaba95cf /core/runtime
parentffe953b43d1ad31d2c37f544a1d389e30d8f69bf (diff)
[runtime] Fix typo in shrink_dynamic_array()
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/core_builtin.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/core_builtin.odin b/core/runtime/core_builtin.odin
index 6792734d2..cbcb162a8 100644
--- a/core/runtime/core_builtin.odin
+++ b/core/runtime/core_builtin.odin
@@ -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
}