Skip to content

Commit cba7cdf

Browse files
committed
[embedded] Drop an unnecessary change in Integers.swift
1 parent 8299674 commit cba7cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ extension FixedWidthInteger {
27352735
// If we used &+ instead, the result would be zero, which isn't helpful,
27362736
// so we actually need to handle this case separately.
27372737
if delta == Magnitude.max {
2738-
return Self(truncatingIfNeeded: generator.next())
2738+
return Self(truncatingIfNeeded: generator.next() as Magnitude)
27392739
}
27402740
// Need to widen delta to account for the right-endpoint of a closed range.
27412741
delta += 1

0 commit comments

Comments
 (0)