summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 3b9d0b923d3..ca6ab3cad6f 100644
--- a/array.c
+++ b/array.c
@@ -416,7 +416,7 @@ ary_rindex(ary, val)
VALUE ary;
VALUE val;
{
- int i = i<RARRAY(ary)->len;
+ int i = RARRAY(ary)->len;
while (i--) {
if (rb_equal(RARRAY(ary)->ptr[i], val))