浏览代码

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

git-svn-id: branches/z80@44582 -
nickysn 5 年之前
父节点
当前提交
8a1be73ce0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;