Skip to content

Commit d9a19c4

Browse files
authored
Merge pull request adafruit#413 from dhalbert/fix_round
Fix round().
2 parents 3c1486a + ddc8570 commit d9a19c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libm/nearbyintf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ float nearbyintf(float x)
1818
#pragma GCC diagnostic push
1919
#pragma GCC diagnostic ignored "-Wfloat-equal"
2020
if (y == 0)
21-
#pragma GCC diagnostic pop
2221
return s ? -0.0f : 0.0f;
22+
#pragma GCC diagnostic pop
2323
return y;
2424
}

0 commit comments

Comments
 (0)