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