Merge pull request #413 from dhalbert/fix_round

Fix round().
This commit is contained in:
Dan Halbert 2017-11-06 21:39:02 -05:00 committed by GitHub
commit d9a19c4c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}