Procházet zdrojové kódy

* fix endless loop introduced by manual for -> while conversion

git-svn-id: trunk@36417 -
florian před 8 roky
rodič
revize
229f615b59
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      compiler/sparcgen/ncpuset.pas

+ 8 - 2
compiler/sparcgen/ncpuset.pas

@@ -81,10 +81,16 @@ unit ncpuset;
             { fill possible hole }
             { fill possible hole }
             i:=last.svalue+1;
             i:=last.svalue+1;
             while i<=t^._low.svalue-1 do
             while i<=t^._low.svalue-1 do
-              list.concat(Tai_const.Create_rel_sym(aitconst_ptr,base,elselabel));
+              begin
+                list.concat(Tai_const.Create_rel_sym(aitconst_ptr,base,elselabel));
+                inc(i);
+              end;
             i:=t^._low.svalue;
             i:=t^._low.svalue;
             while i<=t^._high.svalue do
             while i<=t^._high.svalue do
-              list.concat(Tai_const.Create_rel_sym(aitconst_ptr,base,blocklabel(t^.blockid)));
+              begin
+                list.concat(Tai_const.Create_rel_sym(aitconst_ptr,base,blocklabel(t^.blockid)));
+                inc(i);
+              end;
             last:=t^._high;
             last:=t^._high;
             if assigned(t^.greater) then
             if assigned(t^.greater) then
               genitem(list,t^.greater);
               genitem(list,t^.greater);