March 2014 update

This commit is contained in:
Ingy döt Net 2014-04-02 16:56:35 +00:00
parent 09687c4926
commit a25938f123
1846 changed files with 21876 additions and 5203 deletions

View file

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