Skip to content

Commit d3bf21d

Browse files
committed
Fix storage spec for CPointer repr; flussence++ for reporting the bug and testing the patch.
1 parent 86b9112 commit d3bf21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/6model/reprs/CPointer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ static void gc_free(PARROT_INTERP, PMC *obj) {
6060
/* Gets the storage specification for this representation. */
6161
static storage_spec get_storage_spec(PARROT_INTERP, STable *st) {
6262
storage_spec spec;
63-
spec.inlineable = STORAGE_SPEC_INLINED;
64-
spec.bits = sizeof(CPointerBody) * 8;
63+
spec.inlineable = STORAGE_SPEC_REFERENCE;
6564
spec.boxed_primitive = STORAGE_SPEC_BP_NONE;
65+
spec.can_box = 0;
6666
return spec;
6767
}
6868

0 commit comments

Comments
 (0)