Fix [NSArray -indexesOfObjectsWithOptions:passingTest:] with NSEnumerationReverse option. Was doing forward iteration in all cases.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32054 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-02-11 11:29:34 +00:00
parent e6eaf3c92a
commit 810000e008

View file

@ -1680,7 +1680,7 @@ compare(id elem1, id elem2, void* context)
enumerator = [self reverseObjectEnumerator]; enumerator = [self reverseObjectEnumerator];
} }
FOR_IN (id, obj, self) FOR_IN (id, obj, enumerator)
if (CALL_BLOCK(predicate, obj, count, &shouldStop)) if (CALL_BLOCK(predicate, obj, count, &shouldStop))
{ {
/* TODO: It would be more efficient to collect an NSRange and only /* TODO: It would be more efficient to collect an NSRange and only