From 86c6af5873ae218a3fa92aed419de5b92653b9fb Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 11 Mar 2002 08:02:04 +0000 Subject: * marshal.c (w_object): module inclusion using extend() should also be detected. * eval.c (rb_eval_cmd): cbase should not be NULL; it should be either ruby_wrapper or Object. * enum.c (enum_each_with_index): should return self. * process.c (proc_setpgrp): should return value for non-void function. * process.c (proc_getpgid): should raise exception if getpgid() return -1. * string.c (rb_str_ljust): should return a duplicated string. * string.c (rb_str_rjust): ditto. * string.c (rb_str_center): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enum.c') 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 -- cgit v1.2.3