mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
3e65d11090
commit
f46baadb56
2 changed files with 4 additions and 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.
|
||||
|
|
4
enum.c
4
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue