Skip to content

Commit e4dfbb7

Browse files
committed
wrapping add
1 parent 16ed1a8 commit e4dfbb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/int/big.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl HInt for u128 {
262262
+ (sum2 & u128::from(WORD_FULL_MASK))
263263
+ ((sum3 << 32) & u128::from(WORD_HI_MASK));
264264

265-
let lo = r0 + (r1 << 64);
265+
let lo = r0.wrapping_add(r1 << 64);
266266
let hi = (r1 >> 64)
267267
+ (sum1 >> 96)
268268
+ (sum2 >> 64)

0 commit comments

Comments
 (0)