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:
rfm 2009-02-04 05:30:39 +00:00
parent ba77266752
commit 06a26e0d28
3 changed files with 16 additions and 6 deletions

View file

@ -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