diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index 187bc2b8..79a0ab0b 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -72,6 +72,9 @@ template 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; }