ruby-changes:3177
From: ko1@a...
Date: 25 Dec 2007 15:22:41 +0900
Subject: [ruby-changes:3177] matz - Ruby:r14670 (trunk): * enum.c (collect_all): should pack all values.
matz 2007-12-25 15:22:27 +0900 (Tue, 25 Dec 2007) New Revision: 14670 Modified files: trunk/ChangeLog trunk/enum.c Log: * enum.c (collect_all): should pack all values. [ruby-core:14410] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14670&r2=14669 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?r1=14670&r2=14669 Index: ChangeLog =================================================================== --- ChangeLog (revision 14669) +++ ChangeLog (revision 14670) @@ -14,6 +14,8 @@ * enum.c: all method but all?, any?, one? and none? passed packed multiple values to the block. + * enum.c (collect_all): should pack all values. [ruby-core:14410] + Tue Dec 25 14:57:00 2007 Nobuyoshi Nakada <nobu@r...> * common.mk (COMMONOBJS): transcode_data_*.c moved under enc/trans. Index: enum.c =================================================================== --- enum.c (revision 14669) +++ enum.c (revision 14670) @@ -302,9 +302,9 @@ } static VALUE -collect_all(VALUE i, VALUE ary) +collect_all(VALUE i, VALUE ary, int argc, VALUE *argv) { - rb_ary_push(ary, i); + rb_ary_push(ary, enum_values_pack(argc, argv)); return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml