Skip to content

Commit 7a95e44

Browse files
committed
Fix parentheses in shift expression
1 parent ac5af26 commit 7a95e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/float/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ macro_rules! add {
157157
// need to shift the significand.
158158
let shift = one - a_exponent;
159159
let sticky = ((a_significand << (bits - shift).0 as usize).0 != 0) as <$ty as Float>::Int;
160-
a_significand = a_significand >> (shift.0 | sticky) as usize;
160+
a_significand = a_significand >> shift.0 as usize | Wrapping(sticky);
161161
a_exponent = zero;
162162
}
163163

0 commit comments

Comments
 (0)