diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 06:22:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 06:22:27 +0000 |
commit | f46baadb5698d650565a2f0828c8aa922da1e453 (patch) | |
tree | 17c50b7dcc49f80597f48b2562515dde04f8880f | |
parent | 3e65d11090c5f4f3b87701ed39c8e3cc63e627d0 (diff) |
* 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
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | enum.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -14,6 +14,8 @@ Tue Dec 25 15:00:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * 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@ruby-lang.org> * common.mk (COMMONOBJS): transcode_data_*.c moved under enc/trans. @@ -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; } |