mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
([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:
parent
235ac4dd8f
commit
3a8e9f32cb
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@
|
||||||
|
|
||||||
- objectAtIndex: (unsigned)index
|
- objectAtIndex: (unsigned)index
|
||||||
{
|
{
|
||||||
if (index < _count)
|
if (index >= _count)
|
||||||
[NSException raise:NSRangeException
|
[NSException raise:NSRangeException
|
||||||
format:@"Index out of bounds"];
|
format:@"Index out of bounds"];
|
||||||
return _contents_array[index].id_u;
|
return _contents_array[index].id_u;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue