diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-12-22 09:01:55 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-12-22 09:01:55 +0000 |
commit | 6d583574ab87c7cd18b66382c6892b545167bff6 (patch) | |
tree | 515b7c169ce2cd30fe085c5d861f5fad59aa76f7 /enum.c | |
parent | e299d511db939232c628d6880e61c32e83937d66 (diff) |
1.1d1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1dev@357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -343,10 +343,10 @@ each_with_index_i(val, indexp) VALUE val; int *indexp; { -#if 0 +#if 1 rb_yield(rb_assoc_new(val, INT2FIX(*indexp))); #else - rb_yield(rb_ary_concat(val, INT2FIX(*indexp))); + rb_yield(rb_ary_concat(rb_Array(val), INT2FIX(*indexp))); #endif (*indexp)++; return Qnil; |