diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-09-04 08:31:33 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-09-04 08:31:33 +0900 |
| commit | 27ac09be9dfb20c35c91e5bda112797bdb3d2cfa (patch) | |
| tree | cc2dca1de150a542ae62e4194dd45d80e18c1786 /src/string.c | |
| parent | 1fdf47d71aff39b780384969c6883a9a04f9ac90 (diff) | |
| parent | 26bbc81e122d7f14616dc799e41ef438398669ee (diff) | |
| download | mruby-27ac09be9dfb20c35c91e5bda112797bdb3d2cfa.tar.gz mruby-27ac09be9dfb20c35c91e5bda112797bdb3d2cfa.zip | |
Merge pull request #2583 from cremno/get-rid-of-shadowing-variables
get rid of shadowing variables
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 7387358fc..56827922b 100644 --- a/src/string.c +++ b/src/string.c @@ -1640,7 +1640,6 @@ mrb_str_rindex_m(mrb_state *mrb, mrb_value str) switch (mrb_type(sub)) { case MRB_TT_FIXNUM: { int c = mrb_fixnum(sub); - mrb_int len = RSTRING_LEN(str); unsigned char *p = (unsigned char*)RSTRING_PTR(str); for (pos=len-1;pos>=0;pos--) { |
