Browse Source

+ allow int64 as for loop counter also for 32-bit targets with a 64-bit ALU

git-svn-id: branches/wasm@48229 -
nickysn 4 years ago
parent
commit
ed9b14bc20
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/pstatmnt.pas

+ 2 - 2
compiler/pstatmnt.pas

@@ -381,9 +381,9 @@ implementation
              { variable must be an ordinal, int64 is not allowed for 32bit targets }
              if (
                  not(is_ordinal(hloopvar.resultdef))
-    {$ifndef cpu64bitaddr}
+    {$if not defined(cpu64bitaddr) and not defined(cpu64bitalu)}
                  or is_64bitint(hloopvar.resultdef)
-    {$endif not cpu64bitaddr}
+    {$endif not cpu64bitaddr and not cpu64bitalu}
                ) and
                (hloopvar.resultdef.typ<>undefineddef)
                then