about summary refs log tree commit diff
path: root/math/s_csinl.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_csinl.c')
-rw-r--r--math/s_csinl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/s_csinl.c b/math/s_csinl.c
index accaeb5cf2..a4b1eb5620 100644
--- a/math/s_csinl.c
+++ b/math/s_csinl.c
@@ -52,6 +52,9 @@ __csinl (__complex__ long double x)
 	      cosix = 1.0;
 	    }
 
+	  if (negate)
+	    sinix = -sinix;
+
 	  if (fabsl (__imag__ x) > t)
 	    {
 	      long double exp_t = __ieee754_expl (t);
@@ -86,9 +89,6 @@ __csinl (__complex__ long double x)
 	      __imag__ retval = __ieee754_sinhl (__imag__ x) * cosix;
 	    }
 
-	  if (negate)
-	    __real__ retval = -__real__ retval;
-
 	  if (fabsl (__real__ retval) < LDBL_MIN)
 	    {
 	      volatile long double force_underflow