mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Corrected NSIndexSet index iteration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19569 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
858255dd23
commit
75793d3412
2 changed files with 5 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-06-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSIndexSet.m: (-indexGreaterThanOrEqualToIndex,
|
||||||
|
-indexGreaterThanIndex:) removed incorrect special case handling.
|
||||||
|
|
||||||
2004-06-20 Richard Frith-Macdonald <rfm@gnu.org>
|
2004-06-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise
|
* Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise
|
||||||
|
|
|
@ -321,10 +321,6 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
||||||
{
|
{
|
||||||
return anIndex;
|
return anIndex;
|
||||||
}
|
}
|
||||||
if (++pos >= GSIArrayCount(_array))
|
|
||||||
{
|
|
||||||
return NSNotFound;
|
|
||||||
}
|
|
||||||
r = GSIArrayItemAtIndex(_array, pos).ext;
|
r = GSIArrayItemAtIndex(_array, pos).ext;
|
||||||
return r.location;
|
return r.location;
|
||||||
}
|
}
|
||||||
|
@ -352,10 +348,6 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
||||||
{
|
{
|
||||||
return r.location;
|
return r.location;
|
||||||
}
|
}
|
||||||
if (++pos >= GSIArrayCount(_array))
|
|
||||||
{
|
|
||||||
return NSNotFound;
|
|
||||||
}
|
|
||||||
r = GSIArrayItemAtIndex(_array, pos).ext;
|
r = GSIArrayItemAtIndex(_array, pos).ext;
|
||||||
return r.location;
|
return r.location;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue