Explorar o código

* also use the unsigned 8-bit comparison code for 8-bit signed equal/unequal comparisons

git-svn-id: branches/z80@44582 -
nickysn %!s(int64=5) %!d(string=hai) anos
pai
achega
8a1be73ce0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/z80/nz80add.pas

+ 1 - 1
compiler/z80/nz80add.pas

@@ -198,7 +198,7 @@ interface
 
         pass_left_right;
 
-        if opsize=OS_8 then
+        if (opsize=OS_8) or ((opsize=OS_S8) and (NodeType in [equaln,unequaln])) then
           begin
             if getresflags(unsigned)=F_NotPossible then
               swapleftright;