summaryrefslogtreecommitdiff
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
commite9075024dc00cba7b2bfebfcfd038969a29a1c4b (patch)
treeb133d0e497ea49d9df436c98fab6d95c2c35843e
parent1bb3818bea87d764ca39998583d9961dd303dc0e (diff)
capa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index d378e48..a6d5f42 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);