From: <kti...@us...> - 2014-04-17 13:04:26
|
Revision: 6594 http://sourceforge.net/p/mingw-w64/code/6594 Author: ktietz70 Date: 2014-04-17 13:04:20 +0000 (Thu, 17 Apr 2014) Log Message: ----------- Fix corner-case expm1(-0) == -0. Found by Matthew Brett. Modified Paths: -------------- trunk/mingw-w64-crt/math/expm1.def.h Modified: trunk/mingw-w64-crt/math/expm1.def.h =================================================================== --- trunk/mingw-w64-crt/math/expm1.def.h 2014-04-17 13:02:42 UTC (rev 6593) +++ trunk/mingw-w64-crt/math/expm1.def.h 2014-04-17 13:04:20 UTC (rev 6594) @@ -60,7 +60,7 @@ } else if (x_class == FP_ZERO) { - return __FLT_CST(0.0); + return x; } if (__FLT_ABI (fabs) (x) < __FLT_LOGE2) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |