summaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/array.c b/array.c
index 2d5b5ace3..0335b67b7 100644
--- a/array.c
+++ b/array.c
@@ -174,6 +174,12 @@ rb_ary_new4(long n, const VALUE *elts)
return ary;
}
+VALUE
+rb_ary_tmp_new(long len)
+{
+ return ary_new(0, len);
+}
+
void
rb_ary_free(VALUE ary)
{