Correct atan/exp/tanh errno setting (try 2)
Zheng Chen
chanchengcc at gmail.com
Wed Mar 25 06:52:01 CDT 2015
The last one was damaged by my email client.
Thanks Piotr for pointting out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150325/4b9bbcbc/attachment.html>
-------------- next part --------------
From daa7cc921e21c20d0f6b4a89e6aa18757fab182b Mon Sep 17 00:00:00 2001
From: Kevin Chan <ChanChengCC at gmail.com>
Date: Tue, 24 Mar 2015 09:04:14 +0000
Subject: msvcrt: Correct atan/exp/tanh errno setting
---
dlls/msvcrt/math.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index acac35d..73f01aa 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -363,7 +363,7 @@ double CDECL MSVCRT_asin( double x )
*/
double CDECL MSVCRT_atan( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
+ if (isnan(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return atan(x);
}
@@ -399,7 +399,7 @@ double CDECL MSVCRT_cosh( double x )
*/
double CDECL MSVCRT_exp( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
+ if (isnan(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return exp(x);
}
@@ -484,7 +484,7 @@ double CDECL MSVCRT_tan( double x )
*/
double CDECL MSVCRT_tanh( double x )
{
- if (!isfinite(x)) *MSVCRT__errno() = MSVCRT_EDOM;
+ if (isnan(x)) *MSVCRT__errno() = MSVCRT_EDOM;
return tanh(x);
}
--
2.3.3
More information about the wine-patches
mailing list