Skip to content
Permalink
Browse files
[cppcheck] mrb_str_rindex() remove unnecessary len update by chars2by…
…tes()
  • Loading branch information
matz committed Feb 5, 2016
1 parent af4dd3d commit 62b06ab4d428dec51a32d4da46e99206912141e7
Showing 1 changed file with 0 additions and 1 deletion.
@@ -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)) {

0 comments on commit 62b06ab

Please sign in to comment.