typemapper.hpp:71:39: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
The range check creates a sign compare warning when T is signed. The fix here was to simply cast the result of std::numeric_limits<T>::max() to match the long long unsigned type. Which the result should always fit into.
typemapper.hpp:71:39: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
The range check creates a sign compare warning when T is signed. The fix here was to simply cast the result of
std::numeric_limits<T>::max()
to match the long long unsigned type. Which the result should always fit into.