diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-11-06 19:55:58 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2017-11-06 20:09:23 -0500 |
| commit | ddc85701372f8537aff85d7cf23ef0a18f25038f (patch) | |
| tree | f68ddb814249cc8f5ece6569b03a1ebe25f2281c /lib | |
| parent | bd7abcda970e4e6ecd0f64621536870b49185594 (diff) | |
Fix round(). Don't split a statement with a #pragma. It breaks the compiled output.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libm/nearbyintf.c | 2 |
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; } |
