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

Piotr Caban piotr.caban at gmail.com
Tue Jul 18 07:03:50 CDT 2017


On 07/18/17 06:33, Alex Henrie wrote:
> @@ -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;
>   }
The function behaves differently depending on the reason of overflow. It 
doesn't set ERANGE errno if x == INFINITY (as your tests show). But it 
does set it when e.g. x == 10e100.

Thanks,
Piotr



More information about the wine-devel mailing list