Browse Source

* fixed compilation on 32 bit hosts

git-svn-id: trunk@2636 -
florian 19 years ago
parent
commit
51d98d439e
1 changed files with 12 additions and 4 deletions
  1. 12 4
      compiler/powerpc64/nppcset.pas

+ 12 - 4
compiler/powerpc64/nppcset.pas

@@ -80,10 +80,18 @@ var
     if assigned(t^.less) then
       genitem(list,t^.less);
     { fill possible hole }
-    for i:=last+1 to t^._low-1 do
-      list.concat(Tai_const.Create_sym(elselabel));
-    for i:=t^._low to t^._high do
-      list.concat(Tai_const.Create_sym(blocklabel(t^.blockid)));
+    i:=last+1;
+    while i<=t^._low-1 do
+      begin
+        list.concat(Tai_const.Create_sym(elselabel));
+        inc(i);
+      end;
+    i:=t^._low;
+    while i<=t^._high do
+      begin
+        list.concat(Tai_const.Create_sym(blocklabel(t^.blockid)));
+        inc(i);
+      end;
     last:=t^._high;
     if assigned(t^.greater) then
       genitem(list,t^.greater);