Always use .Resize_Non_Zeroed in _reserve_soa

This commit is contained in:
Damian Tarnawski
2025-08-23 17:07:57 +02:00
parent 2a6dfd2545
commit ac4a89e765

View File

@@ -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)