fix the use of uninitialized value in regcomp
[musl.git] / src / complex / cprojf.c
blob653be5e87cfcbf2d64f297fe21bed06423aab9e3
1 #include "libm.h"
3 float complex cprojf(float complex z)
5 if (isinf(crealf(z)) || isinf(cimagf(z)))
6 return CMPLXF(INFINITY, copysignf(0.0, crealf(z)));
7 return z;