Browse Source

* not(is_signed(ld) xor is_signed(rd)) changed to (is_signed(ld)=is_signed(rd)) for better readability

git-svn-id: trunk@26817 -
nickysn 11 years ago
parent
commit
3c332bf276
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/nadd.pas

+ 1 - 1
compiler/nadd.pas

@@ -1390,7 +1390,7 @@ implementation
                      not is_64bitint(ld) and not is_64bitint(rd) and
                      not is_64bitint(ld) and not is_64bitint(rd) and
                      ((nodetype=andn) or
                      ((nodetype=andn) or
                       ((nodetype in [orn,xorn,equaln,unequaln,gtn,gten,ltn,lten]) and
                       ((nodetype in [orn,xorn,equaln,unequaln,gtn,gten,ltn,lten]) and
-                       not(is_signed(ld) xor is_signed(rd)))) then
+                       (is_signed(ld)=is_signed(rd)))) then
                begin
                begin
                  if (rd.size>ld.size) or
                  if (rd.size>ld.size) or
                     { Delphi-compatible: prefer unsigned type for "and" with equal size }
                     { Delphi-compatible: prefer unsigned type for "and" with equal size }