summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-11-06 19:55:58 -0500
committerDan Halbert <halbert@halwitz.org>2017-11-06 20:09:23 -0500
commitddc85701372f8537aff85d7cf23ef0a18f25038f (patch)
treef68ddb814249cc8f5ece6569b03a1ebe25f2281c
parentbd7abcda970e4e6ecd0f64621536870b49185594 (diff)
Fix round(). Don't split a statement with a #pragma. It breaks the compiled output.
-rw-r--r--lib/libm/nearbyintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libm/nearbyintf.c b/lib/libm/nearbyintf.c
index 1bb44aa46..5ac3178b5 100644
--- a/lib/libm/nearbyintf.c
+++ b/lib/libm/nearbyintf.c
@@ -18,7 +18,7 @@ float nearbyintf(float x)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
if (y == 0)
-#pragma GCC diagnostic pop
return s ? -0.0f : 0.0f;
+#pragma GCC diagnostic pop
return y;
}