mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
Small bug fix for index sets.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18928 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9e361f3985
commit
dd0beb1657
2 changed files with 8 additions and 3 deletions
|
@ -460,7 +460,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
|||
}
|
||||
else
|
||||
{
|
||||
unsigned count = GSIArrayCount(_other);
|
||||
unsigned count = _other ? GSIArrayCount(_other) : 0;
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
|
@ -580,7 +580,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
|||
|
||||
- (void) addIndexes: (NSIndexSet*)aSet
|
||||
{
|
||||
unsigned count = GSIArrayCount(_other);
|
||||
unsigned count = _other ? GSIArrayCount(_other) : 0;
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
|
@ -701,7 +701,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
|||
|
||||
- (void) removeIndexes: (NSIndexSet*)aSet
|
||||
{
|
||||
unsigned count = GSIArrayCount(_other);
|
||||
unsigned count = _other ? GSIArrayCount(_other) : 0;
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue