Fix warning ( warning: comparison between signed and unsigned integer expressions ) (#1904)

This commit is contained in:
proller 2017-09-26 01:40:20 +03:00 committed by Aleksandar Fabijanic
parent c70612a5d5
commit b9d8aaa0c6

View File

@ -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.");
}