summaryrefslogtreecommitdiffstats
path: root/newlib/libm/complex/cacos.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/complex/cacos.c')
-rw-r--r--newlib/libm/complex/cacos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libm/complex/cacos.c b/newlib/libm/complex/cacos.c
index d871617e3..3196d970f 100644
--- a/newlib/libm/complex/cacos.c
+++ b/newlib/libm/complex/cacos.c
@@ -83,6 +83,7 @@ cacos(double complex z)
double complex w;
w = casin(z);
- w = (M_PI_2 - creal(w)) - cimag(w) * I;
+ w = M_PI_2 - creal(w);
+ w -= (cimag(w) * I);
return w;
}