Browse Source

* fixed tlist overflow in some corner cases when fixing up jumps

git-svn-id: trunk@2342 -
Jonas Maebe 19 years ago
parent
commit
4fcc98fbf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/powerpc64/aasmcpu.pas

+ 1 - 1
compiler/powerpc64/aasmcpu.pas

@@ -480,7 +480,7 @@ begin
     begin
     begin
       if p.typ = ait_label then
       if p.typ = ait_label then
         begin
         begin
-          if (tai_label(p).l.labelnr > labelpositions.count) then
+          if (tai_label(p).l.labelnr >= labelpositions.count) then
             labelpositions.count := tai_label(p).l.labelnr * 2;
             labelpositions.count := tai_label(p).l.labelnr * 2;
           labelpositions[tai_label(p).l.labelnr] := pointer(instrpos);
           labelpositions[tai_label(p).l.labelnr] := pointer(instrpos);
         end;
         end;