aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-10 02:06:14 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-10 02:06:14 +0000
commitccf2425f5c9b99fed130706ff2110f121808de3d (patch)
treeb133d0e497ea49d9df436c98fab6d95c2c35843e /enum.c
parent8af9b4f205d7ba9e284a468f29641af2edd69e3b (diff)
downloadruby-ccf2425f5c9b99fed130706ff2110f121808de3d.tar.gz
capa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index d378e48967..a6d5f425db 100644
--- a/enum.c
+++ b/enum.c
@@ -521,7 +521,7 @@ enum_to_a(int argc, VALUE *argv, VALUE obj)
ary = rb_ary_new();
}
else {
- ary = rb_ary_new2(NUM2LONG(size));
+ ary = rb_ary_new_capa(NUM2LONG(size));
}
rb_block_call(obj, id_each, argc, argv, collect_all, ary);