diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2025-08-23 17:07:57 +0200 |
|---|---|---|
| committer | Damian Tarnawski <gthetarnav@gmail.com> | 2025-08-23 17:07:57 +0200 |
| commit | ac4a89e7651f3942c02af89d530e4fdc048e1dd5 (patch) | |
| tree | 8d480316ca48b5d3f229c5e03b7cf11b44a7127a /base | |
| parent | 2a6dfd2545b78b91ddb690f30068742212862f81 (diff) | |
Always use .Resize_Non_Zeroed in _reserve_soa
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/core_builtin_soa.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/runtime/core_builtin_soa.odin b/base/runtime/core_builtin_soa.odin index 46c767751..33cb760ed 100644 --- a/base/runtime/core_builtin_soa.odin +++ b/base/runtime/core_builtin_soa.odin @@ -250,7 +250,7 @@ _reserve_soa :: proc(array: ^$T/#soa[dynamic]$E, capacity: int, zero_memory: boo old_data := (^rawptr)(array)^ new_bytes, resize_err := array.allocator.procedure( - array.allocator.data, .Resize if zero_memory else .Resize_Non_Zeroed, new_size, max_align, + array.allocator.data, .Resize_Non_Zeroed, new_size, max_align, old_data, old_size, loc, ) new_data := raw_data(new_bytes) |