Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created September 10, 2014 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/9f6bcae485fed4511392 to your computer and use it in GitHub Desktop.
Save jnthn/9f6bcae485fed4511392 to your computer and use it in GitHub Desktop.
diff --git a/src/6model/serialization.c b/src/6model/serialization.c
index 5e2bc38..788b073 100644
--- a/src/6model/serialization.c
+++ b/src/6model/serialization.c
@@ -570,6 +570,9 @@ void MVM_serialization_write_ref(MVMThreadContext *tc, MVMSerializationWriter *w
else if (REPR(ref)->ID == MVM_REPR_ID_MVMMultiCache) {
discrim = REFVAR_VM_NULL;
}
+ else if (REPR(ref)->ID == MVM_REPR_ID_MVMOSHandle) {
+ discrim = REFVAR_VM_NULL;
+ }
else if (STABLE(ref) == STABLE(tc->instance->boot_types.BOOTInt)) {
discrim = REFVAR_VM_INT;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment