Skip to content

Commit

Permalink
Fix crash when we have a typed attribute but the meta-attribute doesn…
Browse files Browse the repository at this point in the history
…'t expose a .box_target.
  • Loading branch information
jnthn committed May 14, 2011
1 parent ad4a452 commit 372e310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/6model/reprs/P6opaque.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void compute_allocation_strategy(PARROT_INTERP, PMC *WHAT, REPRP6opaque *
bits = spec.bits;

/* Is it a target for box/unbox operations? */
if (VTABLE_get_bool(interp, box_target)) {
if (!PMC_IS_NULL(box_target) && VTABLE_get_bool(interp, box_target)) {
switch (unboxed_type) {
case STORAGE_SPEC_BP_INT:
if (repr->unbox_int_offset)
Expand Down

0 comments on commit 372e310

Please sign in to comment.