Skip to content

Commit 5563ed1

Browse files
author
Max Moiseev
committed
[stdlib] Remove reintroduced extendingOrtruncating call
1 parent a7ce287 commit 5563ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Integers.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2129,7 +2129,7 @@ ${operatorComment(x.operator, False)}
21292129
public static func ${x.operator} <
21302130
Other : BinaryInteger
21312131
>(lhs: Self, rhs: Other) -> Self {
2132-
return lhs ${x.operator} Self(extendingOrTruncating: rhs)
2132+
return lhs ${x.operator} Self(truncatingIfNeeded: rhs)
21332133
}
21342134

21352135
// Heterogeneous masking shift assignment

0 commit comments

Comments
 (0)