From 4c69bfaff4bb2307e02fe6913f8f8d74b07a5ec1 Mon Sep 17 00:00:00 2001 From: est31 Date: Wed, 10 May 2017 02:41:29 +0200 Subject: [PATCH] Build.rs: better debug output --- library/compiler-builtins/build.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs index 1b2aab149ba8..c8179fe9eb9a 100644 --- a/library/compiler-builtins/build.rs +++ b/library/compiler-builtins/build.rs @@ -1913,8 +1913,9 @@ static TEST_CASES: &[((i128,), u64)] = &[ fn floattidf() { for &((a,), b) in TEST_CASES { let b_ = __floattidf(a); - let diff = if to_u64(b_) > b { to_u64(b_) - b } else { b - to_u64(b_) }; - assert_eq!(((a,), b, true), ((a,), b, diff <= 1)); + let g_b = to_u64(b_); + let diff = if g_b > b { g_b - b } else { b - g_b }; + assert_eq!(((a,), b, g_b, true), ((a,), b, g_b, diff <= 1)); } } " @@ -2245,8 +2246,9 @@ static TEST_CASES: &[((u128,), u64)] = &[ fn floatuntidf() { for &((a,), b) in TEST_CASES { let b_ = __floatuntidf(a); - let diff = if to_u64(b_) > b { to_u64(b_) - b } else { b - to_u64(b_) }; - assert_eq!(((a,), b, true), ((a,), b, diff <= 1)); + let g_b = to_u64(b_); + let diff = if g_b > b { g_b - b } else { b - g_b }; + assert_eq!(((a,), b, g_b, true), ((a,), b, g_b, diff <= 1)); } } "