mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
fix range error in last substring creation change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35940 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d9d73c0b4
commit
fd9e1db26c
2 changed files with 20 additions and 10 deletions
|
@ -3855,6 +3855,7 @@ agree, create a new GSCInlineString otherwise.
|
|||
s = createTinyString((char*)_contents.c + aRange.location, aRange.length);
|
||||
if (nil == s)
|
||||
{
|
||||
aRange.location += (_contents.c - _parent->_contents.c);
|
||||
s = substring_c((GSStr)_parent, aRange);
|
||||
}
|
||||
return s;
|
||||
|
@ -3868,6 +3869,7 @@ agree, create a new GSCInlineString otherwise.
|
|||
s = createTinyString((char*)_contents.c + aRange.location, aRange.length);
|
||||
if (nil == s)
|
||||
{
|
||||
aRange.location += (_contents.c - _parent->_contents.c);
|
||||
s = substring_c((GSStr)_parent, aRange);
|
||||
}
|
||||
return s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue