We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e60465 commit 16fa79fCopy full SHA for 16fa79f
src/libcompiler_builtins/lib.rs
@@ -664,7 +664,8 @@ pub mod reimpls {
664
665
if exponent < 0 { return (0 as i128_).to_ret(); }
666
if exponent > ::core::mem::size_of::<$outty>() as i32 * 8 {
667
- return (if sign > 0.0 { <$outty>::max_value() } else { <$outty>::min_value() }).to_ret();
+ let ret = if sign > 0.0 { <$outty>::max_value() } else { <$outty>::min_value() };
668
+ return ret.to_ret();
669
}
670
let r = if exponent < (<$fromty as FloatStuff>::MANTISSA_BITS) as i32 {
671
(mantissa as $outty)
0 commit comments