瀏覽代碼

* fix compilation after last commit

Jonas Maebe 4 年之前
父節點
當前提交
3795cadbc8
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      compiler/x86/nx86add.pas

+ 5 - 1
compiler/x86/nx86add.pas

@@ -96,7 +96,11 @@ unit nx86add;
         overflowcheck: boolean;
         overflowcheck: boolean;
         comparison: boolean;
         comparison: boolean;
       begin
       begin
-        overflowcheck:=needoverflowcheck;
+        overflowcheck:=(cs_check_overflow in current_settings.localswitches) and
+          (left.resultdef.typ<>pointerdef) and
+          (right.resultdef.typ<>pointerdef) and
+          not(nf_internal in flags);
+
         comparison:=
         comparison:=
           (op=A_CMP) or (op=A_TEST) or (op=A_BT) or is_boolean(resultdef);
           (op=A_CMP) or (op=A_TEST) or (op=A_BT) or is_boolean(resultdef);