mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00
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.
This commit is contained in:
commit
fd79e7740b
@ -65,7 +65,7 @@ impl Fp {
|
|||||||
f <<= 1;
|
f <<= 1;
|
||||||
e -= 1;
|
e -= 1;
|
||||||
}
|
}
|
||||||
debug_assert!(f >= (1 >> 63));
|
debug_assert!(f >= (1 << 63));
|
||||||
Fp { f, e }
|
Fp { f, e }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user