Skip to content

Commit

Permalink
Fix oversight in p6listitems.
Browse files Browse the repository at this point in the history
This broke at least shift, which in turn broke many other things.
  • Loading branch information
jnthn committed Dec 19, 2013
1 parent e998752 commit 9cf4e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/ops/perl6_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static void p6listitems(MVMThreadContext *tc) {
MVMObject *list = GET_REG(tc, 2).o;
if (MVM_6model_istype_cache_only(tc, list, List)) {
MVMObject *items = ((Rakudo_List *)list)->items;
if (!items || !IS_CONCRETE(items)) {
if (!items || !IS_CONCRETE(items) || REPR(items)->ID != MVM_REPR_ID_MVMArray) {
MVMROOT(tc, list, {
items = MVM_repr_alloc_init(tc, tc->instance->boot_types.BOOTArray);
MVM_ASSIGN_REF(tc, list, ((Rakudo_List *)list)->items, items);
Expand Down

0 comments on commit 9cf4e13

Please sign in to comment.