Skip to content

Commit

Permalink
Revert "avoid clang tidy warning (#3646)" (#3648)
Browse files Browse the repository at this point in the history
This reverts commit b23488d.
  • Loading branch information
aleks-f committed Jun 27, 2022
1 parent b23488d commit 309aff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Foundation/include/Poco/Dynamic/VarHolder.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class Foundation_API VarHolder
throw RangeException("Value too large.");
}
else
if (from > static_cast<F>(std::numeric_limits<T>::max()))
if (from > std::numeric_limits<T>::max())
{
throw RangeException("Value too large.");
}
Expand Down Expand Up @@ -457,7 +457,7 @@ class Foundation_API VarHolder
template <typename F, typename T>
void checkLowerLimit(const F& from) const
{
if (from < static_cast<F>(std::numeric_limits<T>::min()))
if (from < std::numeric_limits<T>::min())
throw RangeException("Value too small.");
}
};
Expand Down

0 comments on commit 309aff3

Please sign in to comment.