Skip to content

Commit b8eb1f1

Browse files
authored
Fix assert in diy_float
The shifting should have gone the other way, the current incarnation is always true.
1 parent fd853c0 commit b8eb1f1

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)