mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
ba1b0e613b
commit
8396a85bea
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>
|
||||
|
||||
* Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise
|
||||
|
|
|
@ -321,10 +321,6 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
|||
{
|
||||
return anIndex;
|
||||
}
|
||||
if (++pos >= GSIArrayCount(_array))
|
||||
{
|
||||
return NSNotFound;
|
||||
}
|
||||
r = GSIArrayItemAtIndex(_array, pos).ext;
|
||||
return r.location;
|
||||
}
|
||||
|
@ -352,10 +348,6 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
|||
{
|
||||
return r.location;
|
||||
}
|
||||
if (++pos >= GSIArrayCount(_array))
|
||||
{
|
||||
return NSNotFound;
|
||||
}
|
||||
r = GSIArrayItemAtIndex(_array, pos).ext;
|
||||
return r.location;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue