mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
further fast enumeration bugfixes from david.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27774 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba77266752
commit
06a26e0d28
3 changed files with 16 additions and 6 deletions
|
@ -81,6 +81,8 @@
|
|||
IMP nextObject = [self methodForSelector: @selector(nextObject)];
|
||||
int i;
|
||||
|
||||
state->itemsPtr = stackbuf;
|
||||
state->mutationsPtr = (unsigned long*)self;
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
id next = nextObject(self, @selector(nextObject));
|
||||
|
@ -91,7 +93,6 @@
|
|||
}
|
||||
*(stackbuf+i) = next;
|
||||
}
|
||||
state->itemsPtr = stackbuf;
|
||||
return len;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue