[PATCH 4/5] msvcr120: Don't set errno in expm1.

Alex Henrie alexhenrie24 at gmail.com
Mon Jul 17 23:33:54 CDT 2017


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/msvcrt/math.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index b030a63c4a..b4f42cc3ae 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -2421,7 +2421,6 @@ double CDECL MSVCR120_expm1(double x)
 #else
     double ret = exp(x) - 1;
 #endif
-    if (!isfinite(ret)) *MSVCRT__errno() = MSVCRT_ERANGE;
     return ret;
 }
 
@@ -2435,7 +2434,6 @@ float CDECL MSVCR120_expm1f(float x)
 #else
     double ret = exp(x) - 1;
 #endif
-    if (!isfinite(ret)) *MSVCRT__errno() = MSVCRT_ERANGE;
     return ret;
 }
 
-- 
2.13.3




More information about the wine-patches mailing list