diff --git a/Sources/BitwiseRotate/BitwiseRotate.swift b/Sources/BitwiseRotate/BitwiseRotate.swift index 67640a8..797e06e 100644 --- a/Sources/BitwiseRotate/BitwiseRotate.swift +++ b/Sources/BitwiseRotate/BitwiseRotate.swift @@ -46,7 +46,7 @@ public extension FixedWidthInteger where Self == UInt { /// Shift the bits to the left. Shifted bits are rotated to the right. /// - Parameter n: Number of places to shift. /// - Returns: Bits rotated n places to the left. - func rotateLeft(_ n: Other) -> Self where Other : BinaryInteger { + func rotateLeft(_ n: Int) -> Self { assert(n < 64) if n == 0 { return self } return (self &<< n) | (self &>> (64 &- Self(truncatingIfNeeded: n)))