mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 13:51:37 -04:00
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:
1 file changed
+1
-1
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user