diff --git a/Sources/HomomorphicEncryption/DoubleWidthUInt.swift b/Sources/HomomorphicEncryption/DoubleWidthUInt.swift index db8e6991..f9432c27 100644 --- a/Sources/HomomorphicEncryption/DoubleWidthUInt.swift +++ b/Sources/HomomorphicEncryption/DoubleWidthUInt.swift @@ -417,7 +417,7 @@ extension DoubleWidthUInt: FixedWidthInteger { if rhs._storage.high != (0 as High) || rhs._storage.low >= DoubleWidthUInt.bitWidth { - lhs = lhs < (0 as DoubleWidthUInt) ? ~0 : 0 + lhs = 0 return }