mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
fix a 32bit bug
This commit is contained in:
parent
50cde5ff03
commit
568221ab5a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user