mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-22 05:02:00 +00:00
Recommit tested changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32075 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b771863503
commit
feb65c9c78
7 changed files with 52 additions and 27 deletions
|
@ -460,7 +460,7 @@ appendUIntData(NSMutableData *d, NSUInteger i)
|
|||
NSRange tmpRange;
|
||||
IMP getImp;
|
||||
|
||||
if (rangeLimit.location < 0 || NSMaxRange(rangeLimit) > [self length])
|
||||
if (NSMaxRange(rangeLimit) > [self length])
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"RangeError in method -attributesAtIndex:longestEffectiveRange:inRange: in class NSAttributedString"];
|
||||
|
@ -548,7 +548,7 @@ appendUIntData(NSMutableData *d, NSUInteger i)
|
|||
BOOL (*eImp)(id,SEL,id);
|
||||
IMP getImp;
|
||||
|
||||
if (rangeLimit.location < 0 || NSMaxRange(rangeLimit) > [self length])
|
||||
if (NSMaxRange(rangeLimit) > [self length])
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"RangeError in method -attribute:atIndex:longestEffectiveRange:inRange: in class NSAttributedString"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue