Explorar o código

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

Yuriy Sydorov %!s(int64=4) %!d(string=hai) anos
pai
achega
b8befe3d1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/x86/nx86add.pas

+ 1 - 1
compiler/x86/nx86add.pas

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