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

git-svn-id: trunk@2342 -
This commit is contained in:
Jonas Maebe 2006-01-26 09:54:56 +00:00
parent c4b6652468
commit 4fcc98fbf9

View File

@ -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;