File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -598,13 +598,16 @@ static PMC * repr_clone(PARROT_INTERP, PMC *to_clone) {
598
598
if (defined (interp , to_clone )) {
599
599
obj = (P6opaqueInstance * )Parrot_gc_allocate_fixed_size_storage (interp , repr_data -> allocation_size );
600
600
memcpy (obj , PMC_data (to_clone ), repr_data -> allocation_size );
601
+ return wrap_object (interp , obj );
601
602
}
602
603
else {
604
+ PMC * result ;
603
605
obj = mem_allocate_zeroed_typed (P6opaqueInstance );
604
606
memcpy (obj , PMC_data (to_clone ), sizeof (P6opaqueInstance ));
607
+ result = wrap_object (interp , obj );
608
+ PObj_flag_SET (private0 , result );
609
+ return result ;
605
610
}
606
-
607
- return wrap_object (interp , obj );
608
611
}
609
612
610
613
/* Used with boxing. Sets an integer value, for representations that can hold
You can’t perform that action at this time.
0 commit comments