about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-07-30 16:26:53 +0900
committerGitHub <noreply@github.com>2021-07-30 16:26:53 +0900
commitfd79e7740b8951b51a999dac6d0073b34085e1a4 (patch)
tree5b470a2777b7fe0e7cfa142713c6abca07ec967a
parentc25b979db6ee65923e46f8e4dcffcbd3a8381668 (diff)
parentb8eb1f167c6e3271df0797226048d85255434938 (diff)
downloadrust-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.rs2
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 }
     }