mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
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:
parent
e6eaf3c92a
commit
810000e008
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue