mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
avoid clang tidy warning (#3646)
This commit is contained in:
@@ -416,7 +416,7 @@ private:
|
|||||||
throw RangeException("Value too large.");
|
throw RangeException("Value too large.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (from > std::numeric_limits<T>::max())
|
if (from > static_cast<F>(std::numeric_limits<T>::max()))
|
||||||
{
|
{
|
||||||
throw RangeException("Value too large.");
|
throw RangeException("Value too large.");
|
||||||
}
|
}
|
||||||
@@ -457,7 +457,7 @@ private:
|
|||||||
template <typename F, typename T>
|
template <typename F, typename T>
|
||||||
void checkLowerLimit(const F& from) const
|
void checkLowerLimit(const F& from) const
|
||||||
{
|
{
|
||||||
if (from < std::numeric_limits<T>::min())
|
if (from < static_cast<F>(std::numeric_limits<T>::min()))
|
||||||
throw RangeException("Value too small.");
|
throw RangeException("Value too small.");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user