From 80e582c3a35c02ea98dd08a7069ccb12c80cf2be Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Mon, 27 Jun 2022 04:03:28 -0500 Subject: [PATCH] Revert "avoid clang tidy warning (#3646)" This reverts commit b23488d6feab13645ce306fd02fd50635f54b25f. --- Foundation/include/Poco/Dynamic/VarHolder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); } };