aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 6742e04a11..d71425d1ac 100644
--- a/string.c
+++ b/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;
}