From ddc85701372f8537aff85d7cf23ef0a18f25038f Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 6 Nov 2017 19:55:58 -0500 Subject: [PATCH] Fix round(). Don't split a statement with a #pragma. It breaks the compiled output. --- lib/libm/nearbyintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libm/nearbyintf.c b/lib/libm/nearbyintf.c index 1bb44aa466..5ac3178b51 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; }