diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-30 16:26:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-30 16:26:53 +0900 |
| commit | fd79e7740b8951b51a999dac6d0073b34085e1a4 (patch) | |
| tree | 5b470a2777b7fe0e7cfa142713c6abca07ec967a | |
| parent | c25b979db6ee65923e46f8e4dcffcbd3a8381668 (diff) | |
| parent | b8eb1f167c6e3271df0797226048d85255434938 (diff) | |
| download | rust-fd79e7740b8951b51a999dac6d0073b34085e1a4.tar.gz rust-fd79e7740b8951b51a999dac6d0073b34085e1a4.zip | |
Rollup merge of #87522 - frogtd:patch-1, r=yaahc
Fix assert in diy_float The shifting should have gone the other way, the current incarnation is always true.
| -rw-r--r-- | library/core/src/num/diy_float.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/diy_float.rs b/library/core/src/num/diy_float.rs index 0a609417dcf..ce7f6475d05 100644 --- a/library/core/src/num/diy_float.rs +++ b/library/core/src/num/diy_float.rs @@ -65,7 +65,7 @@ impl Fp { f <<= 1; e -= 1; } - debug_assert!(f >= (1 >> 63)); + debug_assert!(f >= (1 << 63)); Fp { f, e } } |
