diff options
Diffstat (limited to 'math/s_catanl.c')
-rw-r--r-- | math/s_catanl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/math/s_catanl.c b/math/s_catanl.c index cea9282a54..dd01d16dcd 100644 --- a/math/s_catanl.c +++ b/math/s_catanl.c @@ -97,7 +97,11 @@ __catanl (__complex__ long double x) } if (absy < LDBL_EPSILON / 2.0L) - den = (1.0L - absx) * (1.0L + absx); + { + den = (1.0L - absx) * (1.0L + absx); + if (den == -0.0L) + den = 0.0L; + } else if (absx >= 1.0L) den = (1.0L - absx) * (1.0L + absx) - absy * absy; else if (absx >= 0.75L || absy >= 0.5L) |