From 62b06ab4d428dec51a32d4da46e99206912141e7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 5 Feb 2016 21:54:07 +0900 Subject: [cppcheck] mrb_str_rindex() remove unnecessary len update by chars2bytes() --- src/string.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/string.c') 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)) { -- cgit v1.2.3