* 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:
akr 2008-08-12 14:16:43 +00:00
parent 12096f588f
commit c523f6f15e
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}