diff options
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 8d79defe0..15fcc502a 100644 --- a/src/string.c +++ b/src/string.c @@ -1870,7 +1870,6 @@ mrb_str_rindex(mrb_state *mrb, mrb_value str) sub = mrb_nil_value(); } pos = chars2bytes(str, 0, pos); - len = chars2bytes(str, pos, len); mrb_regexp_check(mrb, sub); switch (mrb_type(sub)) { |
