mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
revert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32047 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
360d24cda1
commit
7deeb174a4
1 changed files with 2 additions and 10 deletions
|
@ -2160,7 +2160,7 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
|||
#define STRIDE_FACTOR 3
|
||||
unsigned c,d, stride;
|
||||
BOOL found;
|
||||
NSComparisonResult (*comp)(id, SEL, id);
|
||||
NSComparisonResult (*comp)(id, SEL, id) = 0;
|
||||
unsigned int count = numKeys;
|
||||
#ifdef GSWARN
|
||||
BOOL badComparison = NO;
|
||||
|
@ -2171,15 +2171,7 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
|||
{
|
||||
stride = stride * STRIDE_FACTOR + 1;
|
||||
}
|
||||
|
||||
/* Initialise lastClass and comparison method to those of the
|
||||
* first object to be sorted ... this is done here to avoid
|
||||
* bogus compiler warnings.
|
||||
*/
|
||||
lastClass = object_getClass(keys[0]);
|
||||
comp = (NSComparisonResult (*)(id, SEL, id))
|
||||
[keys[0] methodForSelector: @selector(compare:)];
|
||||
|
||||
lastClass = 0;
|
||||
while (stride > (STRIDE_FACTOR - 1))
|
||||
{
|
||||
// loop to sort for each value of stride
|
||||
|
|
Loading…
Reference in a new issue