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

(synced from 642b2b04b7)
This commit is contained in:
2022-02-23 23:40:02 -06:00
parent 4356a27f03
commit 0166392612
+1 -1
View File
@@ -130,7 +130,7 @@ template<typename T>
using Unsigned = Uint<sizeof(T) * 8>;
// 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 {
};