fix wide printf forms ignoring width for %lc format specifier
[musl] / src / complex / cproj.c
index 15f358a..d2b8f5a 100644 (file)
@@ -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;
 }