summaryrefslogtreecommitdiff
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 5b5f69a60a..4a24e5d67c 100644
--- a/string.c
+++ b/string.c
@@ -7235,7 +7235,7 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
beg = start;
}
else {
- if (ptr+start == ptr+len)
+ if (start == len)
start++;
else
start += rb_enc_fast_mbclen(ptr+start,ptr+len,enc);