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:
Yuki Okushi 2021-07-30 16:26:53 +09:00 committed by GitHub
commit fd79e7740b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ impl Fp {
f <<= 1;
e -= 1;
}
debug_assert!(f >= (1 >> 63));
debug_assert!(f >= (1 << 63));
Fp { f, e }
}