Fix a variety of issues in the nextSpan/previousSpan method family

This commit is contained in:
Karoy Lorentey committed 2026-10-21 19:56:55 -07:00
1 parent 1522a8a85d
commit bbdd37ada7
9 files changed
+322 -43

No files matched your search

+1 -1
View File
@@ -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