mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 07:13:27 +02:00
Fix warning ( warning: comparison between signed and unsigned integer expressions ) (#1904)
This commit is contained in:
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.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user