March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -33,9 +33,10 @@ begin
|
|||
end loop;
|
||||
exit when Left >= Right;
|
||||
Swap(Item(Left), Item(Right));
|
||||
if Left < Item'Last and Right > Item'First then
|
||||
Left := Index_Type'Succ(Left);
|
||||
Right := Index_Type'Pred(Right);
|
||||
if Pivot_Index = Left then
|
||||
Pivot_Index := Right;
|
||||
elsif Pivot_Index = Right then
|
||||
Pivot_Index := Left;
|
||||
end if;
|
||||
end loop;
|
||||
if Right > Item'First then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue