mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
[BitSet] Fix a thinko in BitSet.isEqualSet
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -223,8 +223,8 @@ extension _UnsafeBitSet {
|
||||
let r = range.clamped(to: 0 ..< UInt(capacity))
|
||||
guard r == range else { return false }
|
||||
|
||||
let lower = Index(range.lowerBound)
|
||||
let upper = Index(range.upperBound)
|
||||
let lower = Index(range.lowerBound).split
|
||||
let upper = Index(range.upperBound).endSplit
|
||||
|
||||
guard upper.word == wordCount &- 1 else { return false }
|
||||
|
||||
|
||||
Reference in new issue
Block a user