Skip to content

Commit

Permalink
Fix the nqp::shiftpfusch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 1, 2013
1 parent 1c8477f commit 5f8398e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/vm/moar/ops/perl6_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,13 @@ static void p6shiftpush(MVMThreadContext *tc) {
}
}
if (total > 0) {
MVMObject *copy = MVM_repr_alloc_init(tc, List);
REPR(b)->pos_funcs.splice(tc, STABLE(b), b, OBJECT_BODY(b),
copy, 0, total);
MVMROOT(tc, a, {
MVMROOT(tc, b, {
MVMObject *copy = MVM_repr_alloc_init(tc, tc->instance->boot_types.BOOTArray);
REPR(b)->pos_funcs.splice(tc, STABLE(b), b, OBJECT_BODY(b),
copy, 0, total);
});
});
}

GET_REG(tc, 0).o = a;
Expand Down

0 comments on commit 5f8398e

Please sign in to comment.