Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit fd79e77

Browse files
authored
Rollup merge of rust-lang#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.
2 parents c25b979 + b8eb1f1 commit fd79e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/diy_float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl Fp {
6565
f <<= 1;
6666
e -= 1;
6767
}
68-
debug_assert!(f >= (1 >> 63));
68+
debug_assert!(f >= (1 << 63));
6969
Fp { f, e }
7070
}
7171

0 commit comments

Comments
 (0)