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:
Fred Kiefer 2004-06-21 09:45:13 +00:00
parent ba1b0e613b
commit 8396a85bea
2 changed files with 5 additions and 8 deletions

View file

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