summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 4b5e84e1425..ae1f8c1fff8 100644
--- a/array.c
+++ b/array.c
@@ -412,9 +412,9 @@ ary_new(VALUE klass, long capa)
ARY_SET_PTR(ary, ptr);
ARY_SET_CAPA(ary, capa);
ARY_SET_HEAP_LEN(ary, 0);
- } else {
+ }
+ else {
ary = ary_alloc(klass);
-
}
return ary;