Fix corner-case expm1(-0) == -0. Found by Matthew Brett. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6594 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/math/expm1.def.h b/mingw-w64-crt/math/expm1.def.h index 476f1b9..9346031 100644 --- a/mingw-w64-crt/math/expm1.def.h +++ b/mingw-w64-crt/math/expm1.def.h
@@ -60,7 +60,7 @@ } else if (x_class == FP_ZERO) { - return __FLT_CST(0.0); + return x; } if (__FLT_ABI (fabs) (x) < __FLT_LOGE2) {