summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 9e0cf19fc0..82219e78d6 100644
--- a/enum.c
+++ b/enum.c
@@ -427,7 +427,7 @@ enum_each_with_index(obj)
rb_iterate(rb_each, obj, each_with_index_i, (VALUE)memo);
rb_gc_force_recycle((VALUE)memo);
- return Qnil;
+ return obj;
}
void