mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:09:16 +02:00
* converted for-loop to while-loop, because its loop count is used on exit
even if no break is triggered git-svn-id: trunk@34776 -
This commit is contained in:
parent
85f2903b8b
commit
1c04470b66
@ -55,9 +55,13 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
for i:=1 to num_transitions-1 do
|
i:=1;
|
||||||
if (timer<transitions[i]) then
|
while i<=num_transitions-1 do
|
||||||
break;
|
begin
|
||||||
|
if (timer<transitions[i]) then
|
||||||
|
break;
|
||||||
|
inc(i);
|
||||||
|
end;
|
||||||
i:=type_idxs[i-1];
|
i:=type_idxs[i-1];
|
||||||
end;
|
end;
|
||||||
find_transition:=@types[i];
|
find_transition:=@types[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user