Skip to content

Commit

Permalink
Rollup merge of rust-lang#87522 - frogtd:patch-1, r=yaahc
Browse files Browse the repository at this point in the history
Fix assert in diy_float

The shifting should have gone the other way, the current incarnation is always true.
  • Loading branch information
GuillaumeGomez committed Jul 29, 2021
2 parents d9bc2db + b8eb1f1 commit 8233a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/diy_float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Fp {
f <<= 1;
e -= 1;
}
debug_assert!(f >= (1 >> 63));
debug_assert!(f >= (1 << 63));
Fp { f, e }
}

Expand Down

0 comments on commit 8233a21

Please sign in to comment.