msvcrt: remove errno EDOM from atan, exp and tanh
Kevin Chan
chanchengcc at gmail.com
Sun Mar 22 08:50:41 CDT 2015
- Fixed the problem of atan(INF)/tanh(INF)/exp(INF) causing errno EDOM
This patch fixes parts of these two bugs: 37149, 37150
---
dlls/msvcrt/math.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index acac35d..19989c9 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -363,7 +363,6 @@ double CDECL MSVCRT_asin( double x )
*/
double CDECL MSVCRT_atan( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return atan(x);
}
@@ -399,7 +398,6 @@ double CDECL MSVCRT_cosh( double x )
*/
double CDECL MSVCRT_exp( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return exp(x);
}
@@ -484,7 +482,6 @@ double CDECL MSVCRT_tan( double x )
*/
double CDECL MSVCRT_tanh( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return tanh(x);
}
--
2.3.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150322/a66c3c4c/attachment.html>
More information about the wine-patches
mailing list