[ox/std] Make ResizedInt use static_cast to get better error messages
This commit is contained in:
parent
69b3245ba3
commit
642b2b04b7
2
deps/ox/src/ox/std/types.hpp
vendored
2
deps/ox/src/ox/std/types.hpp
vendored
@ -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 {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user