From 01dcb7fe6c386b4dc529bb666ba70bc8f4cc18b2 Mon Sep 17 00:00:00 2001 From: est31 Date: Wed, 14 Dec 2016 05:12:12 +0100 Subject: [PATCH] Tidy --- src/libcompiler_builtins/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcompiler_builtins/lib.rs b/src/libcompiler_builtins/lib.rs index 8a1f02d661e..92c6f8dd728 100644 --- a/src/libcompiler_builtins/lib.rs +++ b/src/libcompiler_builtins/lib.rs @@ -664,7 +664,8 @@ pub mod reimpls { if exponent < 0 { return (0 as i128_).to_ret(); } if exponent > ::core::mem::size_of::<$outty>() as i32 * 8 { - 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() }; + return ret.to_ret(); } let r = if exponent < (<$fromty as FloatStuff>::MANTISSA_BITS) as i32 { (mantissa as $outty)