mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
Fix warning ( warning: comparison between signed and unsigned integer expressions ) (#1904)
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
c70612a5d5
commit
b9d8aaa0c6
@@ -406,7 +406,7 @@ private:
|
||||
throw RangeException("Value too large.");
|
||||
}
|
||||
else
|
||||
if (from > std::numeric_limits<T>::max())
|
||||
if (from > static_cast<F>(std::numeric_limits<T>::max()))
|
||||
{
|
||||
throw RangeException("Value too large.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user