mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
677735a5ce
commit
88ad743ec3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue