summaryrefslogtreecommitdiff
path: root/src/complex/ctanl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/ctanl.c')
-rw-r--r--src/complex/ctanl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complex/ctanl.c b/src/complex/ctanl.c
index 4b4c99b6..ac1c3e0a 100644
--- a/src/complex/ctanl.c
+++ b/src/complex/ctanl.c
@@ -8,7 +8,7 @@ long double complex ctanl(long double complex z)
#else
long double complex ctanl(long double complex z)
{
- z = ctanhl(cpackl(-cimagl(z), creall(z)));
- return cpackl(cimagl(z), -creall(z));
+ z = ctanhl(CMPLXL(-cimagl(z), creall(z)));
+ return CMPLXL(cimagl(z), -creall(z));
}
#endif