Commit e95dbb3b authored by Zheng Chen's avatar Zheng Chen Committed by Alexandre Julliard

msvcrt: Correct atan/exp/tanh errno setting.

parent 1b93c010
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment