aboutsummaryrefslogtreecommitdiff
path: root/math/s_cprojl.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_cprojl.c')
-rw-r--r--math/s_cprojl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/math/s_cprojl.c b/math/s_cprojl.c
index fbdf279..b564a83 100644
--- a/math/s_cprojl.c
+++ b/math/s_cprojl.c
@@ -24,9 +24,7 @@
__complex__ long double
__cprojl (__complex__ long double x)
{
- if (isnan (__real__ x) && isnan (__imag__ x))
- return x;
- else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
+ if (__isinf_nsl (__real__ x) || __isinf_nsl (__imag__ x))
{
__complex__ long double res;