Skip to content

Commit abc88b3

Browse files
committed
Give VMArray its missing get_elem_stable.
1 parent c37b962 commit abc88b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vm/parrot/6model/reprs/VMArray.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,11 @@ static PMC *shift_boxed(PARROT_INTERP, STable *st, void *data) {
521521
return value;
522522
}
523523

524+
static STable * get_elem_stable(PARROT_INTERP, STable *st) {
525+
VMArrayREPRData *repr_data = (VMArrayREPRData *)st->REPR_data;
526+
return STABLE(repr_data->elem_type);
527+
}
528+
524529
/* Initializes the VMArray representation. */
525530
REPROps * VMArray_initialize(PARROT_INTERP) {
526531
/* Allocate and populate the representation function table. */
@@ -547,5 +552,6 @@ REPROps * VMArray_initialize(PARROT_INTERP) {
547552
this_repr->pos_funcs->pop_boxed = pop_boxed;
548553
this_repr->pos_funcs->unshift_boxed = unshift_boxed;
549554
this_repr->pos_funcs->shift_boxed = shift_boxed;
555+
this_repr->pos_funcs->get_elem_stable = get_elem_stable;
550556
return this_repr;
551557
}

0 commit comments

Comments
 (0)