summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enum.c b/enum.c
index 7dd1842126..2b4b904018 100644
--- a/enum.c
+++ b/enum.c
@@ -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;