Browse Source

* Allow constant uint64 operations for +,-,shl,shr,or,xor,and.

git-svn-id: branches/fixes_2_2@7681 -
daniel 18 years ago
parent
commit
2a96f150c4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/nadd.pas

+ 2 - 2
compiler/nadd.pas

@@ -221,8 +221,8 @@ implementation
         { both are int constants }
         { both are int constants }
         if (
         if (
             (
             (
-             is_constintnode(left) and (Torddef(ld).ordtype<>u64bit) and
-             is_constintnode(right) and (Torddef(rd).ordtype<>u64bit)
+             is_constintnode(left) and ((Torddef(rd).ordtype<>u64bit) or (nodetype in [addn,subn,shln,shrn,andn,orn,xorn])) and
+             is_constintnode(right) and ((Torddef(rd).ordtype<>u64bit) or (nodetype in [addn,subn,shln,shrn,andn,orn,xorn]))
             ) or
             ) or
             (
             (
              is_constboolnode(left) and
              is_constboolnode(left) and