* array.c (rb_ary_each_index): should return meaningful value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-11-06 18:36:49 +00:00
parent 23176da722
commit d9ebaef79b
2 changed files with 5 additions and 0 deletions

View file

@ -1193,6 +1193,7 @@ rb_ary_each_index(VALUE ary)
{
RETURN_ENUMERATOR(ary, 0, 0);
ITERATE(each_index_i, ary);
return ary;
}
static VALUE