fix a 32bit bug

This commit is contained in:
blueloveTH 2024-03-24 20:17:40 +08:00
parent 50cde5ff03
commit 568221ab5a

View File

@ -72,6 +72,9 @@ template <size_t T>
struct NumberTraits;
inline constexpr bool is_negative_shift_well_defined(){
#ifdef __EMSRIPTEN__
return false;
#endif
// rshift does not affect the sign bit
return ((int)-1) >> 1 == -1 && ((int64_t)-1) >> 1 == -1;
}