Переглянути джерело

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

git-svn-id: trunk@2341 -
Jonas Maebe 19 роки тому
батько
коміт
c4b6652468
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      compiler/powerpc/aasmcpu.pas

+ 1 - 1
compiler/powerpc/aasmcpu.pas

@@ -451,7 +451,7 @@ uses cutils, cclasses;
           begin
             if p.typ = ait_label then
               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[tai_label(p).l.labelnr] := pointer(instrpos);
               end;