Jelajahi Sumber

Update common.h

blueloveTH 2 tahun lalu
induk
melakukan
92bc4b5495
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      include/pocketpy/common.h

+ 2 - 2
include/pocketpy/common.h

@@ -72,11 +72,11 @@ template <size_t T>
 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 <>