mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Replace assert with NSAssert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3248 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5a2bd37c96
commit
a3751eb7bf
31 changed files with 182 additions and 199 deletions
|
@ -164,8 +164,9 @@
|
|||
|
||||
- (unichar) characterAtIndex: (unsigned int)index
|
||||
{
|
||||
/* xxx raise NSException instead of assert. */
|
||||
assert(index < [self length]);
|
||||
if (index >= [self length])
|
||||
[NSException raise: NSRangeException
|
||||
format: @"index greater than sequence length"];
|
||||
return _contents_chars[index];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue