浏览代码

* Fixed a typo in the condition, though it seems this code path is not used now.

Yuriy Sydorov 3 年之前
父节点
当前提交
b8befe3d1f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86/nx86add.pas

+ 1 - 1
compiler/x86/nx86add.pas

@@ -166,7 +166,7 @@ unit nx86add;
                  if (op=A_SUB) and
                     (right.location.loc=LOC_CONSTANT) and
                     (right.location.value=1) and
-                    overflowcheck and
+                    not overflowcheck and
                     UseIncDec then
                   begin
                     emit_reg(A_DEC,TCGSize2Opsize[opsize],left.location.register);