aboutsummaryrefslogtreecommitdiffstats
path: root/insnhelper.ci
diff options
context:
space:
mode:
Diffstat (limited to 'insnhelper.ci')
-rw-r--r--insnhelper.ci4
1 files changed, 2 insertions, 2 deletions
diff --git a/insnhelper.ci b/insnhelper.ci
index 142473f83e..7544345a73 100644
--- a/insnhelper.ci
+++ b/insnhelper.ci
@@ -1340,12 +1340,12 @@ vm_expandarray(rb_control_frame_t *cfp, VALUE ary, int num, int flag)
volatile VALUE tmp_ary;
int len;
- cfp->sp += space_size;
-
if (TYPE(ary) != T_ARRAY) {
ary = rb_ary_to_ary(ary);
}
+ cfp->sp += space_size;
+
tmp_ary = ary;
ptr = RARRAY_PTR(ary);
len = RARRAY_LEN(ary);