mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-01 18:01:14 +02:00
avoid clang tidy warning (#3646)
This commit is contained in:
@@ -416,7 +416,7 @@ private:
|
||||
throw RangeException("Value too large.");
|
||||
}
|
||||
else
|
||||
if (from > std::numeric_limits<T>::max())
|
||||
if (from > static_cast<F>(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 < std::numeric_limits<T>::min())
|
||||
if (from < static_cast<F>(std::numeric_limits<T>::min()))
|
||||
throw RangeException("Value too small.");
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user