diff options
Diffstat (limited to 'math/s_cacoshl.c')
-rw-r--r-- | math/s_cacoshl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/s_cacoshl.c b/math/s_cacoshl.c index 6438589..da23c8d 100644 --- a/math/s_cacoshl.c +++ b/math/s_cacoshl.c @@ -80,6 +80,10 @@ __cacoshl (__complex__ long double x) __imag__ y += __imag__ x; res = __clogl (y); + + /* We have to use the positive branch. */ + if (__real__ res < 0.0) + res = -res; } return res; |