зеркало из https://github.com/github/ruby.git
Revert "temp".
It's my fault. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
615a868b4b
Коммит
2ce35ac863
11
enum.c
11
enum.c
|
@ -515,18 +515,7 @@ enum_flat_map(VALUE obj)
|
||||||
static VALUE
|
static VALUE
|
||||||
enum_to_a(int argc, VALUE *argv, VALUE obj)
|
enum_to_a(int argc, VALUE *argv, VALUE obj)
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
VALUE ary, size = rb_check_funcall(obj, id_size, 0, 0);
|
|
||||||
|
|
||||||
if (size == Qundef) {
|
|
||||||
ary = rb_ary_new();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ary = rb_ary_new2(NUM2LONG(size));
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
VALUE ary = rb_ary_new();
|
VALUE ary = rb_ary_new();
|
||||||
>>>>>>> parent of 3482910... temp
|
|
||||||
|
|
||||||
rb_block_call(obj, id_each, argc, argv, collect_all, ary);
|
rb_block_call(obj, id_each, argc, argv, collect_all, ary);
|
||||||
OBJ_INFECT(ary, obj);
|
OBJ_INFECT(ary, obj);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче