The isnormal() in rev 1.2 should have been isfinite() so subnormals
round correctly. Noticed by: stefanf
This commit is contained in:
parent
3cdb8115d7
commit
0d8f9eca28
@ -34,7 +34,7 @@ round(double x)
|
||||
{
|
||||
double t;
|
||||
|
||||
if (!isnormal(x))
|
||||
if (!isfinite(x))
|
||||
return (x);
|
||||
|
||||
if (x >= 0.0) {
|
||||
|
@ -34,7 +34,7 @@ roundf(float x)
|
||||
{
|
||||
float t;
|
||||
|
||||
if (!isnormal(x))
|
||||
if (!isfinite(x))
|
||||
return (x);
|
||||
|
||||
if (x >= 0.0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user