From f46baadb5698d650565a2f0828c8aa922da1e453 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 25 Dec 2007 06:22:27 +0000 Subject: [PATCH] * enum.c (collect_all): should pack all values. [ruby-core:14410] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 ++ enum.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d62fa4c3c6..cb89ce57b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ Tue Dec 25 15:00:33 2007 Yukihiro Matsumoto * 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 * common.mk (COMMONOBJS): transcode_data_*.c moved under enc/trans. diff --git a/enum.c b/enum.c index 2e1c490691..4e3ff927da 100644 --- a/enum.c +++ b/enum.c @@ -302,9 +302,9 @@ collect_i(VALUE i, VALUE ary, int argc, VALUE *argv) } 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; }