mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 10:48:30 +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
|
||||
else
|
||||
begin
|
||||
for i:=1 to num_transitions-1 do
|
||||
if (timer<transitions[i]) then
|
||||
break;
|
||||
i:=1;
|
||||
while i<=num_transitions-1 do
|
||||
begin
|
||||
if (timer<transitions[i]) then
|
||||
break;
|
||||
inc(i);
|
||||
end;
|
||||
i:=type_idxs[i-1];
|
||||
end;
|
||||
find_transition:=@types[i];
|
||||
|
Loading…
Reference in New Issue
Block a user