Merge pull request #7671 from Dihedron-Software/fix-xar-chunk-count

`core:container/xar`: fix chunk slot count capping `Array` capacity
This commit is contained in:
gingerBill authored and GitHub committed 2026-09-29 18:00:54 +01:00
commit fbb155ddd7
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ MAX_SHIFT :: PLATFORM_BITS>>1
}
*/
Array :: struct($T: typeid, $SHIFT: uint) where 0 < SHIFT, SHIFT <= MAX_SHIFT {
chunks: [(1 << (_LOG2_PLATFORM_BITS - intrinsics.constant_log2(SHIFT))) + 1][^]T,
chunks: [PLATFORM_BITS - SHIFT + 1][^]T,
len: int,
allocator: runtime.Allocator,
}