mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
Fix a variety of issues in the nextSpan/previousSpan method family
This commit is contained in:
9 files changed
+322
-43
No files matched your search
@@ -418,7 +418,7 @@ extension _UnsafeDequeHandle where Element: ~Copyable {
|
||||
towards: startOffset <= wrapOffset ? 0 : wrapOffset,
|
||||
maxDistance: maxDistance,
|
||||
limitedBy: limitOffset)
|
||||
return (p, p &- startOffset)
|
||||
return (p, startOffset &- p)
|
||||
}
|
||||
|
||||
@_alwaysEmitIntoClient
|
||||
|
||||
Reference in new issue
Block a user