Skip to content

Commit eea4996

Browse files
authored
Simplify DoubleWidthUInt >> (#114)
1 parent e8db9a7 commit eea4996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/HomomorphicEncryption/DoubleWidthUInt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ extension DoubleWidthUInt: FixedWidthInteger {
417417
if rhs._storage.high != (0 as High) ||
418418
rhs._storage.low >= DoubleWidthUInt.bitWidth
419419
{
420-
lhs = lhs < (0 as DoubleWidthUInt) ? ~0 : 0
420+
lhs = 0
421421
return
422422
}
423423

0 commit comments

Comments
 (0)