diff options
Diffstat (limited to 'newlib/libm/math/sf_tan.c')
-rw-r--r-- | newlib/libm/math/sf_tan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/sf_tan.c b/newlib/libm/math/sf_tan.c index ade1cb216..18c47a454 100644 --- a/newlib/libm/math/sf_tan.c +++ b/newlib/libm/math/sf_tan.c @@ -32,7 +32,7 @@ if(ix <= 0x3f490fda) return __kernel_tanf(x,z,1); /* tan(Inf or NaN) is NaN */ - else if (ix>=0x7f800000) return x-x; /* NaN */ + else if (!FLT_UWORD_IS_FINITE(ix)) return x-x; /* NaN */ /* argument reduction needed */ else { |