[ox/std] Make ResizedInt use static_cast to get better error messages

This commit is contained in:
Gary Talent 2022-02-23 23:40:02 -06:00
parent 69b3245ba3
commit 642b2b04b7

View File

@ -130,7 +130,7 @@ template<typename T>
using Unsigned = Uint<sizeof(T) * 8>; using Unsigned = Uint<sizeof(T) * 8>;
// ResizedInt retains the sign while granting a new size // ResizedInt retains the sign while granting a new size
template<typename T, std::size_t bits, bool si = T(-1) < T(0)> template<typename T, std::size_t bits, bool si = static_cast<T>(-1) < static_cast<T>(0)>
struct ResizedInt { struct ResizedInt {
}; };