summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-09-03 10:00:37 +0200
committercremno <[email protected]>2014-09-03 10:00:37 +0200
commit26bbc81e122d7f14616dc799e41ef438398669ee (patch)
treecc2dca1de150a542ae62e4194dd45d80e18c1786 /src/string.c
parent1fdf47d71aff39b780384969c6883a9a04f9ac90 (diff)
downloadmruby-26bbc81e122d7f14616dc799e41ef438398669ee.tar.gz
mruby-26bbc81e122d7f14616dc799e41ef438398669ee.zip
get rid of shadowing variables
Mostly by renaming the shadowing variable. If a shadowing variable was deleted, the shadowed one can be used instead.
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--) {