mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[BasicContainers] Add early drafts for RigidSet/RigidDictionary
This commit is contained in:
36 files changed
+2411
-51
No files matched your search
@@ -283,7 +283,7 @@ extension BitArray {
|
||||
var pos = _BitPosition(_count)
|
||||
if pos.bit > 0 {
|
||||
let (bits, count) = it._nextChunk(
|
||||
maximumCount: UInt(_Word.capacity) - pos.bit)
|
||||
maximumCount: _Word._capacity - pos.bit)
|
||||
guard count > 0 else { return }
|
||||
_count += count
|
||||
_update { $0._copy(bits: bits, count: count, to: pos) }
|
||||
|
||||
Reference in new issue
Block a user