diff --git a/Foundation/include/Poco/Dynamic/VarHolder.h b/Foundation/include/Poco/Dynamic/VarHolder.h index 9704f67567..f6987b283a 100644 --- a/Foundation/include/Poco/Dynamic/VarHolder.h +++ b/Foundation/include/Poco/Dynamic/VarHolder.h @@ -416,7 +416,7 @@ class Foundation_API VarHolder throw RangeException("Value too large."); } else - if (from > static_cast(std::numeric_limits::max())) + if (from > std::numeric_limits::max()) { throw RangeException("Value too large."); } @@ -457,7 +457,7 @@ class Foundation_API VarHolder template void checkLowerLimit(const F& from) const { - if (from < static_cast(std::numeric_limits::min())) + if (from < std::numeric_limits::min()) throw RangeException("Value too small."); } };