on failed aio submission, set aiocb error and return value
[musl] / src / complex / ctanhf.c
index a7e1a5f..72b76da 100644 (file)
@@ -50,7 +50,7 @@ float complex ctanhf(float complex z)
        }
 
        if (!isfinite(y))
-               return CMPLXF(y - y, y - y);
+               return CMPLXF(ix ? y - y : x, y - y);
 
        if (ix >= 0x41300000) { /* x >= 11 */
                float exp_mx = expf(-fabsf(x));