diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-02-05 21:54:07 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-02-05 21:54:07 +0900 |
| commit | 62b06ab4d428dec51a32d4da46e99206912141e7 (patch) | |
| tree | 12370e87f43f9256a4b465b6e110e2cd0a33407f /src/string.c | |
| parent | af4dd3d579d99e817e39e6deeb84e93f6d0bc049 (diff) | |
| download | mruby-62b06ab4d428dec51a32d4da46e99206912141e7.tar.gz mruby-62b06ab4d428dec51a32d4da46e99206912141e7.zip | |
[cppcheck] mrb_str_rindex() remove unnecessary len update by chars2bytes()
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)) { |
