Revert "avoid clang tidy warning (#3646)" (#3648)

This reverts commit b23488d6fe.
This commit is contained in:
Aleksandar Fabijanic 2022-06-27 12:44:52 +02:00 committed by GitHub
parent b23488d6fe
commit 309aff3579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.");
}
};