mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-24 14:12:26 +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
|
@ -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…
Add table
Add a link
Reference in a new issue