Tidied for gcc-3.4

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15476 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-01-03 20:14:47 +00:00
parent 77fbafc557
commit d64578fc3e
50 changed files with 2888 additions and 1775 deletions

View file

@ -631,14 +631,15 @@ static SEL eqSel;
/* Shell sort algorithm taken from SortingInAction - a NeXT example */
#define STRIDE_FACTOR 3 // good value for stride factor is not well-understood
// 3 is a fairly good choice (Sedgewick)
unsigned c,d, stride;
unsigned int c;
unsigned int d;
unsigned int stride = 1;
BOOL found;
int count = _count;
unsigned int count = _count;
#ifdef GSWARN
BOOL badComparison = NO;
#endif
stride = 1;
while (stride <= count)
{
stride = stride * STRIDE_FACTOR + 1;