We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac5af26 commit 7a95e44Copy full SHA for 7a95e44
src/float/add.rs
@@ -157,7 +157,7 @@ macro_rules! add {
157
// need to shift the significand.
158
let shift = one - a_exponent;
159
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;
+ a_significand = a_significand >> shift.0 as usize | Wrapping(sticky);
161
a_exponent = zero;
162
}
163
0 commit comments