mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Bufix sorting array.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15273 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
627d189b1f
commit
3eb602cc99
3 changed files with 25 additions and 20 deletions
|
@ -1519,7 +1519,7 @@ static int compare(id elem1, id elem2, void* context)
|
|||
unsigned val = indices[from++];
|
||||
|
||||
i = to;
|
||||
while (i > 0 && sorted[i] > val)
|
||||
while (i > 0 && sorted[i-1] > val)
|
||||
{
|
||||
i--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue