We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 551a699 commit 141f629Copy full SHA for 141f629
Sources/Testing/SourceAttribution/ExpressionID.swift
@@ -42,10 +42,10 @@ public struct __ExpressionID: Sendable {
42
return nybbles
43
.enumerated()
44
.flatMap { i, nybble in
45
- (0 ..< Self._bitsPerNybble).lazy
+ let nybbleOffset = i * Self._bitsPerNybble
46
+ return (0 ..< Self._bitsPerNybble).lazy
47
.filter { (nybble & (1 << $0)) != 0 }
- .map { (i * Self._bitsPerNybble) + $0 }
48
- .map(UInt32.init)
+ .map { UInt32(nybbleOffset + $0) }
49
}
50
51
0 commit comments