aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 21bb780ddb..5e0b61572e 100644
--- a/compile.c
+++ b/compile.c
@@ -2435,6 +2435,7 @@ compile_array_(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE* node_root,
else {
ADD_INSN(anchor, line, concatarray);
}
+
APPEND_LIST(ret, anchor);
break;
case COMPILE_ARRAY_TYPE_HASH:
@@ -2461,6 +2462,10 @@ compile_array_(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE* node_root,
break;
}
}
+ else {
+ /* poped */
+ APPEND_LIST(ret, anchor);
+ }
}
}
}