summaryrefslogtreecommitdiff
path: root/src/complex/cproj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cproj.c')
-rw-r--r--src/complex/cproj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complex/cproj.c b/src/complex/cproj.c
index 15f358a1..d2b8f5a9 100644
--- a/src/complex/cproj.c
+++ b/src/complex/cproj.c
@@ -1,8 +1,8 @@
-#include "libm.h"
+#include "complex_impl.h"
double complex cproj(double complex z)
{
if (isinf(creal(z)) || isinf(cimag(z)))
- return CMPLX(INFINITY, copysign(0.0, creal(z)));
+ return CMPLX(INFINITY, copysign(0.0, cimag(z)));
return z;
}