remove unused errno setting from strtox
This commit is contained in:
parent
b7a978f766
commit
7f5b228e2c
@ -8914,13 +8914,11 @@ skip_loop:
|
|||||||
{
|
{
|
||||||
if (exp > std::numeric_limits<T>::max_exponent10)
|
if (exp > std::numeric_limits<T>::max_exponent10)
|
||||||
{
|
{
|
||||||
errno = ERANGE;
|
|
||||||
constexpr T inf = std::numeric_limits<T>::infinity();
|
constexpr T inf = std::numeric_limits<T>::infinity();
|
||||||
result = (result < 0) ? -inf : inf;
|
result = (result < 0) ? -inf : inf;
|
||||||
}
|
}
|
||||||
else if (exp < std::numeric_limits<T>::min_exponent10)
|
else if (exp < std::numeric_limits<T>::min_exponent10)
|
||||||
{
|
{
|
||||||
errno = ERANGE;
|
|
||||||
result = 0.0;
|
result = 0.0;
|
||||||
}
|
}
|
||||||
else if (exp < 0)
|
else if (exp < 0)
|
||||||
|
|||||||
@ -8211,13 +8211,11 @@ skip_loop:
|
|||||||
{
|
{
|
||||||
if (exp > std::numeric_limits<T>::max_exponent10)
|
if (exp > std::numeric_limits<T>::max_exponent10)
|
||||||
{
|
{
|
||||||
errno = ERANGE;
|
|
||||||
constexpr T inf = std::numeric_limits<T>::infinity();
|
constexpr T inf = std::numeric_limits<T>::infinity();
|
||||||
result = (result < 0) ? -inf : inf;
|
result = (result < 0) ? -inf : inf;
|
||||||
}
|
}
|
||||||
else if (exp < std::numeric_limits<T>::min_exponent10)
|
else if (exp < std::numeric_limits<T>::min_exponent10)
|
||||||
{
|
{
|
||||||
errno = ERANGE;
|
|
||||||
result = 0.0;
|
result = 0.0;
|
||||||
}
|
}
|
||||||
else if (exp < 0)
|
else if (exp < 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user