Use finite() instead of isinf(), which does not exist in Solaris.

This commit is contained in:
jjgarcia 2001-07-23 10:55:47 +00:00
parent 126d813dcb
commit 9f01940912

View file

@ -103,10 +103,9 @@ make_shortfloat(float f)
{
cl_object x;
if (f == (float)0.0)
return(shortfloat_zero);
if (isnanf(f) || isinf(f))
if (isnanf(f) || !finite(f))
FEerror("Not a number.",0);
x = alloc_object(t_shortfloat);
sf(x) = f;
@ -120,7 +119,7 @@ make_longfloat(double f)
if (f == (double)0.0)
return(longfloat_zero);
if (isnan(f) || isinf(f))
if (isnan(f) || !finite(f))
FEerror("Not a number.",0);
x = alloc_object(t_longfloat);
lf(x) = f;