diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat May 31 18:26:33 2008 Yukihiro Matsumoto <[email protected]> + + * array.c (rb_ary_delete_if): should return enumerator if no block + is given. [ruby-dev:34901] + Sat May 31 15:58:08 2008 Nobuyoshi Nakada <[email protected]> * Makefile.in, configure.in (warnflags): defaulted to -Wall @@ -1907,6 +1907,7 @@ rb_ary_reject(VALUE ary) static VALUE rb_ary_delete_if(VALUE ary) { + RETURN_ENUMERATOR(ary, 0, 0); rb_ary_reject_bang(ary); return ary; } |