mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-02 09:49:48 +02:00
Merge pull request #4087 from Romain-Geissler-1A/remove-different-signedness-comparison-warning
Silence gcc -Wsign-compare warning when instantiating Poco::Dynamic::VarHolder::convertSignedToUnsigned.
This commit is contained in:
commit
346ec77dbd
@ -38,6 +38,7 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <typeinfo>
|
#include <typeinfo>
|
||||||
|
#include <type_traits>
|
||||||
#undef min
|
#undef min
|
||||||
#undef max
|
#undef max
|
||||||
#include <limits>
|
#include <limits>
|
||||||
@ -360,7 +361,7 @@ protected:
|
|||||||
|
|
||||||
if (from < 0)
|
if (from < 0)
|
||||||
throw RangeException("Value too small.");
|
throw RangeException("Value too small.");
|
||||||
checkUpperLimit<F,T>(from);
|
checkUpperLimit<std::make_unsigned<F>,T>(from);
|
||||||
to = static_cast<T>(from);
|
to = static_cast<T>(from);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user