Permalink
Browse files

Only deserialize decoder instances as NULL.

Leave type objects as they are.
  • Loading branch information...
jnthn committed Jun 13, 2017
1 parent acc73c7 commit c4dbebe119d6c0bafaf11607caba083314322871
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/6model/serialization.c
@@ -662,7 +662,7 @@ void MVM_serialization_write_ref(MVMThreadContext *tc, MVMSerializationWriter *w
else if (REPR(ref)->ID == MVM_REPR_ID_MVMOSHandle) {
discrim = REFVAR_VM_NULL;
}
else if (REPR(ref)->ID == MVM_REPR_ID_Decoder) {
else if (REPR(ref)->ID == MVM_REPR_ID_Decoder && IS_CONCRETE(ref)) {
discrim = REFVAR_VM_NULL;
}
else if (STABLE(ref) == STABLE(tc->instance->boot_types.BOOTInt) && IS_CONCRETE(ref)) {

0 comments on commit c4dbebe

Please sign in to comment.