From 309aff3579dff757f9e19f179aec8e4d027e57c0 Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Mon, 27 Jun 2022 12:44:52 +0200 Subject: [PATCH] Revert "avoid clang tidy warning (#3646)" (#3648) 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."); } };