The isnormal() in rev 1.2 should have been isfinite() so subnormals

round correctly.

Noticed by:	stefanf
This commit is contained in:
David Schultz 2005-01-13 15:43:41 +00:00
parent 3cdb8115d7
commit 0d8f9eca28
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ round(double x)
{
double t;
if (!isnormal(x))
if (!isfinite(x))
return (x);
if (x >= 0.0) {

View File

@ -34,7 +34,7 @@ roundf(float x)
{
float t;
if (!isnormal(x))
if (!isfinite(x))
return (x);
if (x >= 0.0) {