From 9d651348b5c6772db26af79dd2ff077c3af670f2 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Sat, 23 Aug 2025 13:10:19 +0200 Subject: Only zero memory when requested --- base/runtime/core_builtin_soa.odin | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'base') diff --git a/base/runtime/core_builtin_soa.odin b/base/runtime/core_builtin_soa.odin index 5baeb9e24..7548f6735 100644 --- a/base/runtime/core_builtin_soa.odin +++ b/base/runtime/core_builtin_soa.odin @@ -262,10 +262,9 @@ _reserve_soa :: proc(array: ^$T/#soa[dynamic]$E, capacity: int, zero_memory: boo footer.cap = capacity - // Adjust layout - // before: |x x y y z z| - // now: |x x y y z z _ _ _| - // after: |x x _ y y _ z z _| + // Correct data memory + // from: |x x y y z z _ _ _| + // to: |x x _ y y _ z z _| for i in 0..