Explorar el Código

Update common.h

blueloveTH hace 2 años
padre
commit
92bc4b5495
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 <>