Skip to content

Commit b43dcd1

Browse files
committed
Add some missing decontainerization.
1 parent 53824c3 commit b43dcd1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/6model/reprs/P6opaque.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ P6opaqueNameMap * index_mapping_and_flat_list(PARROT_INTERP, PMC *WHAT, PMC *fla
135135
else
136136
{
137137
/* Just one. Get next parent and work through its attributes. */
138-
current_class = VTABLE_get_pmc_keyed_int(interp, parents, 0);
138+
current_class = decontainerize(interp, VTABLE_get_pmc_keyed_int(interp, parents, 0));
139139
}
140140
}
141141

src/pmc/sixmodelobject.pmc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ pmclass SixModelObject manual_attrs dynpmc group nqp {
8181
}
8282

8383
VTABLE PMC* get_attr_keyed(PMC *class_handle, STRING *name) {
84-
return REPR(SELF)->get_attribute(interp, SELF, class_handle, name, NO_HINT);
84+
PMC *handle = decontainerize(interp, class_handle);
85+
return REPR(SELF)->get_attribute(interp, SELF, handle, name, NO_HINT);
8586
}
8687

8788
VTABLE void set_attr_keyed(PMC *class_handle, STRING *name, PMC* value) {
88-
REPR(SELF)->bind_attribute(interp, SELF, class_handle, name, NO_HINT, value);
89+
PMC *handle = decontainerize(interp, class_handle);
90+
REPR(SELF)->bind_attribute(interp, SELF, handle, name, NO_HINT, value);
8991
}
9092

9193
/* XXX Hack for Parrot issue which needs invokable on stuff. */

0 commit comments

Comments
 (0)