summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-09-04 08:31:33 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-09-04 08:31:33 +0900
commit27ac09be9dfb20c35c91e5bda112797bdb3d2cfa (patch)
treecc2dca1de150a542ae62e4194dd45d80e18c1786 /src/string.c
parent1fdf47d71aff39b780384969c6883a9a04f9ac90 (diff)
parent26bbc81e122d7f14616dc799e41ef438398669ee (diff)
downloadmruby-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.c1
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--) {