File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,8 @@ extension FixedWidthInteger {
158
158
/// and if negative a right shift.
159
159
/// - rounding rule: the direction in which to round if `count` is negative.
160
160
@_transparent
161
- public func shiftedWithSaturation(
162
- leftBy count: some BinaryInteger ,
161
+ public func shiftedWithSaturation< Count : BinaryInteger > (
162
+ leftBy count: Count ,
163
163
rounding rule: RoundingRule = . down
164
164
) -> Self {
165
165
self . shiftedWithSaturation ( leftBy: Int ( clamping: count) , rounding: rule)
Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ extension BinaryInteger {
188
188
/// a.shifted(rightBy: count, rounding: rule)
189
189
/// a.divided(by: 1 << count, rounding: rule)
190
190
@_transparent
191
- public func shifted(
192
- rightBy count: some BinaryInteger ,
191
+ public func shifted< Count : BinaryInteger > (
192
+ rightBy count: Count ,
193
193
rounding rule: RoundingRule = . down
194
194
) -> Self {
195
195
self . shifted ( rightBy: Int ( clamping: count) , rounding: rule)
You can’t perform that action at this time.
0 commit comments