about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-12-14 05:12:12 +0100
committerest31 <MTest31@outlook.com>2016-12-30 15:17:29 +0100
commit01dcb7fe6c386b4dc529bb666ba70bc8f4cc18b2 (patch)
tree04a8ca26283b302ff1e7a4871874a45c10f785de /src
parentc3e3bc0058e35cc665608935a525caa736eacd19 (diff)
downloadrust-01dcb7fe6c386b4dc529bb666ba70bc8f4cc18b2.tar.gz
rust-01dcb7fe6c386b4dc529bb666ba70bc8f4cc18b2.zip
Tidy
Diffstat (limited to 'src')
-rw-r--r--src/libcompiler_builtins/lib.rs3
1 files changed, 2 insertions, 1 deletions
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)