([NSGArray -objectAtIndex:]): Fix condition on exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@650 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-10-30 01:29:52 +00:00
parent 677735a5ce
commit 88ad743ec3

View file

@ -83,7 +83,7 @@
- objectAtIndex: (unsigned)index
{
if (index < _count)
if (index >= _count)
[NSException raise:NSRangeException
format:@"Index out of bounds"];
return _contents_array[index].id_u;