diff options
-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; } |