macosx compatibility fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-08-13 08:14:47 +00:00
parent 325987015c
commit 0ef215b284
2 changed files with 5 additions and 1 deletions

View file

@ -196,7 +196,9 @@ static NSIndexPath *dummy = nil;
- (unsigned) indexAtPosition: (unsigned)position
{
if (position >= _length)
[NSException raise: NSRangeException format: @"Invalid location."];
{
return NSNotFound;
}
return _indexes[position];
}