瀏覽代碼

Update common.h

blueloveTH 1 年之前
父節點
當前提交
92bc4b5495
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 <>