diff options
Diffstat (limited to 'math/s_cproj.c')
-rw-r--r-- | math/s_cproj.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/math/s_cproj.c b/math/s_cproj.c index c0be4618db..98f1a4c4b2 100644 --- a/math/s_cproj.c +++ b/math/s_cproj.c @@ -24,9 +24,7 @@ __complex__ double __cproj (__complex__ double x) { - if (isnan (__real__ x) && isnan (__imag__ x)) - return x; - else if (!isfinite (__real__ x) || !isfinite (__imag__ x)) + if (__isinf_ns (__real__ x) || __isinf_ns (__imag__ x)) { __complex__ double res; |