diff --git a/Foundation/include/Poco/Dynamic/VarHolder.h b/Foundation/include/Poco/Dynamic/VarHolder.h index 9b4708c64..4fb673229 100644 --- a/Foundation/include/Poco/Dynamic/VarHolder.h +++ b/Foundation/include/Poco/Dynamic/VarHolder.h @@ -406,7 +406,7 @@ private: 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."); }