mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_splice_0): call rb_str_drop_bytes, not rb_str_drop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
12096f588f
commit
c523f6f15e
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Aug 12 23:16:09 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* string.c (rb_str_splice_0): call rb_str_drop_bytes, not rb_str_drop.
|
||||
|
||||
Tue Aug 12 19:11:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/make-snapshot: fix for enc.mk.
|
||||
|
|
2
string.c
2
string.c
|
@ -2861,7 +2861,7 @@ static void
|
|||
rb_str_splice_0(VALUE str, long beg, long len, VALUE val)
|
||||
{
|
||||
if (beg == 0 && RSTRING_LEN(val) == 0) {
|
||||
rb_str_drop(str, len);
|
||||
rb_str_drop_bytes(str, len);
|
||||
OBJ_INFECT(str, val);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue