Skip to content

Commit 16fa79f

Browse files
committed
Tidy
1 parent 6e60465 commit 16fa79f

File tree

1 file changed

+2
-1
lines changed
  • src/libcompiler_builtins

1 file changed

+2
-1
lines changed

src/libcompiler_builtins/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ pub mod reimpls {
664664

665665
if exponent < 0 { return (0 as i128_).to_ret(); }
666666
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();
667+
let ret = if sign > 0.0 { <$outty>::max_value() } else { <$outty>::min_value() };
668+
return ret.to_ret();
668669
}
669670
let r = if exponent < (<$fromty as FloatStuff>::MANTISSA_BITS) as i32 {
670671
(mantissa as $outty)

0 commit comments

Comments
 (0)