aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-12 15:02:46 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-12 15:02:46 -0400
commit1526d89711c90a4a98dfecb6d3c64f28c3ab7da6 (patch)
treec7e2354a7ea33cc0d5a17cca810d8a8b21de28ef /std
parent35352e0f489882b9d5919ffd569e7dcda990f39b (diff)
downloadzig-1526d89711c90a4a98dfecb6d3c64f28c3ab7da6.tar.gz
zig-1526d89711c90a4a98dfecb6d3c64f28c3ab7da6.zip
fix `@bitCast` with runtime scalar and dest result loc var
Diffstat (limited to 'std')
-rw-r--r--std/special/compiler_rt/comparetf2.zig15
1 files changed, 9 insertions, 6 deletions
diff --git a/std/special/compiler_rt/comparetf2.zig b/std/special/compiler_rt/comparetf2.zig
index 0912b71bd5..aaaba954d6 100644
--- a/std/special/compiler_rt/comparetf2.zig
+++ b/std/special/compiler_rt/comparetf2.zig
@@ -73,12 +73,15 @@ pub extern fn __getf2(a: f128, b: f128) c_int {
if (aAbs > infRep or bAbs > infRep) return GE_UNORDERED;
if ((aAbs | bAbs) == 0) return GE_EQUAL;
- return if ((aInt & bInt) >= 0) if (aInt < bInt)
- GE_LESS
- else if (aInt == bInt)
- GE_EQUAL
- else
- GE_GREATER else if (aInt > bInt)
+ // zig fmt issue here, see https://github.com/ziglang/zig/issues/2661
+ return if ((aInt & bInt) >= 0)
+ if (aInt < bInt)
+ GE_LESS
+ else if (aInt == bInt)
+ GE_EQUAL
+ else
+ GE_GREATER
+ else if (aInt > bInt)
GE_LESS
else if (aInt == bInt)
GE_EQUAL