mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +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.");
|
throw RangeException("Value too large.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (from > std::numeric_limits<T>::max())
|
if (from > static_cast<F>(std::numeric_limits<T>::max()))
|
||||||
{
|
{
|
||||||
throw RangeException("Value too large.");
|
throw RangeException("Value too large.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user