From b23488d6feab13645ce306fd02fd50635f54b25f Mon Sep 17 00:00:00 2001 From: JackyWoo Date: Mon, 27 Jun 2022 14:57:20 +0800 Subject: [PATCH] avoid clang tidy warning (#3646) --- 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 f6987b283a..9704f67567 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 > std::numeric_limits::max()) + if (from > static_cast(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 < std::numeric_limits::min()) + if (from < static_cast(std::numeric_limits::min())) throw RangeException("Value too small."); } };