Browse Source

* i8086 compilation fixed after r37572

git-svn-id: trunk@37573 -
florian 7 years ago
parent
commit
674398c5a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/x86/aoptx86.pas

+ 1 - 1
compiler/x86/aoptx86.pas

@@ -1889,7 +1889,7 @@ unit aoptx86;
           case taicpu(hp1).opcode Of
             A_DEC:
               if (taicpu(hp1).oper[0]^.typ = top_reg) and
-                MatchOperand(taicpu(hp1).oper[1]^,taicpu(p).oper[1]^) then
+                MatchOperand(taicpu(hp1).oper[0]^,taicpu(p).oper[1]^) then
                 begin
                   taicpu(p).loadConst(0,taicpu(p).oper[0]^.val+1);
                   asml.remove(hp1);