summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/math/sqrt.def.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/math/sqrt.def.h b/winsup/cygwin/math/sqrt.def.h
index 1048130d0..2690d1d9f 100644
--- a/winsup/cygwin/math/sqrt.def.h
+++ b/winsup/cygwin/math/sqrt.def.h
@@ -73,9 +73,8 @@ __FLT_ABI (sqrt) (__FLT_TYPE x)
if (x_class == FP_ZERO)
return __FLT_CST (-0.0);
- res = (signbit (x) ? -__FLT_NAN : __FLT_NAN);
- __FLT_RPT_DOMAIN ("sqrt", x, 0.0, res);
- return res;
+ __FLT_RPT_DOMAIN ("sqrt", x, 0.0, x);
+ return x;
}
else if (x_class == FP_ZERO)
return __FLT_CST (0.0);