mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
This reverts commit b23488d6fe
.
This commit is contained in:
parent
b23488d6fe
commit
309aff3579
@ -416,7 +416,7 @@ private:
|
||||
throw RangeException("Value too large.");
|
||||
}
|
||||
else
|
||||
if (from > static_cast<F>(std::numeric_limits<T>::max()))
|
||||
if (from > std::numeric_limits<T>::max())
|
||||
{
|
||||
throw RangeException("Value too large.");
|
||||
}
|
||||
@ -457,7 +457,7 @@ private:
|
||||
template <typename F, typename T>
|
||||
void checkLowerLimit(const F& from) const
|
||||
{
|
||||
if (from < static_cast<F>(std::numeric_limits<T>::min()))
|
||||
if (from < std::numeric_limits<T>::min())
|
||||
throw RangeException("Value too small.");
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user