diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-12 14:16:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-12 14:16:43 +0000 |
commit | c523f6f15e9c5012a6f6c81d4e40302294be963a (patch) | |
tree | a4cb8df01a4fc2f06de47b32bc8c198ed799a1be | |
parent | 12096f588feb3e2ee08509bb921f2fde1703cc47 (diff) | |
download | ruby-c523f6f15e9c5012a6f6c81d4e40302294be963a.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | string.c | 2 |
2 files changed, 5 insertions, 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. @@ -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; } |