diff --git a/include/pocketpy/common.h b/include/pocketpy/common.h index 79a0ab0b..4bd2c098 100644 --- a/include/pocketpy/common.h +++ b/include/pocketpy/common.h @@ -72,11 +72,11 @@ template struct NumberTraits; inline constexpr bool is_negative_shift_well_defined(){ -#ifdef __EMSRIPTEN__ +#ifdef __EMSCRIPTEN__ return false; #endif // rshift does not affect the sign bit - return ((int)-1) >> 1 == -1 && ((int64_t)-1) >> 1 == -1; + return -1 >> 1 == -1; } template <>