mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix array enumeration direction.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a2c67aa163
commit
d59b661481
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-09-24 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSArray.m: Make perform methods enumerate forwards.
|
||||
|
||||
2004-09-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSHost.m: Use isEqualToString rather than == to test for
|
||||
|
|
|
@ -320,9 +320,9 @@ static Class GSInlineArrayClass;
|
|||
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector
|
||||
{
|
||||
unsigned i = _count;
|
||||
unsigned i;
|
||||
|
||||
while (i-- > 0)
|
||||
for (i = 0; i < _count; i++)
|
||||
{
|
||||
[_contents_array[i] performSelector: aSelector];
|
||||
}
|
||||
|
@ -330,9 +330,9 @@ static Class GSInlineArrayClass;
|
|||
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector withObject: argument
|
||||
{
|
||||
unsigned i = _count;
|
||||
unsigned i;
|
||||
|
||||
while (i-- > 0)
|
||||
for (i = 0; i < _count; i++)
|
||||
{
|
||||
[_contents_array[i] performSelector: aSelector withObject: argument];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue