mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update common.h
This commit is contained in:
parent
568221ab5a
commit
92bc4b5495
@ -72,11 +72,11 @@ template <size_t T>
|
|||||||
struct NumberTraits;
|
struct NumberTraits;
|
||||||
|
|
||||||
inline constexpr bool is_negative_shift_well_defined(){
|
inline constexpr bool is_negative_shift_well_defined(){
|
||||||
#ifdef __EMSRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
// rshift does not affect the sign bit
|
// rshift does not affect the sign bit
|
||||||
return ((int)-1) >> 1 == -1 && ((int64_t)-1) >> 1 == -1;
|
return -1 >> 1 == -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user