remove unused errno setting from strtox

This commit is contained in:
Jett 2016-10-16 17:28:26 -05:00
parent b7a978f766
commit 7f5b228e2c
2 changed files with 0 additions and 4 deletions

View File

@ -8914,13 +8914,11 @@ skip_loop:
{
if (exp > std::numeric_limits<T>::max_exponent10)
{
errno = ERANGE;
constexpr T inf = std::numeric_limits<T>::infinity();
result = (result < 0) ? -inf : inf;
}
else if (exp < std::numeric_limits<T>::min_exponent10)
{
errno = ERANGE;
result = 0.0;
}
else if (exp < 0)

View File

@ -8211,13 +8211,11 @@ skip_loop:
{
if (exp > std::numeric_limits<T>::max_exponent10)
{
errno = ERANGE;
constexpr T inf = std::numeric_limits<T>::infinity();
result = (result < 0) ? -inf : inf;
}
else if (exp < std::numeric_limits<T>::min_exponent10)
{
errno = ERANGE;
result = 0.0;
}
else if (exp < 0)