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