Fix variuus minor bugs reported by Andre Levy

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20020 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2004-09-07 14:27:14 +00:00
parent 1b371d7744
commit ddd167a6b1
5 changed files with 41 additions and 16 deletions

View file

@ -1688,7 +1688,7 @@ compare(id elem1, id elem2, void* context)
{
if (count > 0)
{
unsigned sorted[count];
GS_BEGINITEMBUF(sorted, count, unsigned int);
unsigned to = 0;
unsigned from = 0;
unsigned i;
@ -1732,6 +1732,7 @@ compare(id elem1, id elem2, void* context)
(*rem)(self, remSel, sorted[to]);
}
}
GS_ENDITEMBUF();
}
}