diff options
Diffstat (limited to 'math/s_cacoshl.c')
-rw-r--r-- | math/s_cacoshl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/math/s_cacoshl.c b/math/s_cacoshl.c index 4e5e2b3e3e..643858920e 100644 --- a/math/s_cacoshl.c +++ b/math/s_cacoshl.c @@ -1,5 +1,5 @@ /* Return arc hyperbole cosine for long double value. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -73,6 +73,9 @@ __cacoshl (__complex__ long double x) y = __csqrtl (y); + if (__real__ x < 0.0) + y = -y; + __real__ y += __real__ x; __imag__ y += __imag__ x; |