diff --git a/compiler/powerpc64/aasmcpu.pas b/compiler/powerpc64/aasmcpu.pas index fefd11f130..a727678d68 100644 --- a/compiler/powerpc64/aasmcpu.pas +++ b/compiler/powerpc64/aasmcpu.pas @@ -480,7 +480,7 @@ begin 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;