* icall.c (ves_icall_type_is_subtype_of): Fix this for byref types.
(ves_icall_type_is_assignable_from): Ditto. Fixes #68582.
svn path=/branches/mono-1-0/mono/; revision=35300
2004-10-25 Zoltan Varga <vargaz@freemail.hu>
+ * icall.c (ves_icall_type_is_subtype_of): Fix this for byref types.
+ (ves_icall_type_is_assignable_from): Ditto. Fixes #68582.
+
* gc.c (finalize_domain_objects): Call GC_invoke_finalizers () so
pending finalizers are not invoked after the appdomain has been
unloaded. Fixes #67862.
klass = mono_class_from_mono_type (type->type);
klassc = mono_class_from_mono_type (c->type);
+ if (type->type->byref)
+ return klassc == mono_defaults.object_class;
+
return mono_class_is_subclass_of (klass, klassc, check_interfaces);
}
klass = mono_class_from_mono_type (type->type);
klassc = mono_class_from_mono_type (c->type);
+ if (type->type->byref && !c->type->byref)
+ return FALSE;
+
return mono_class_is_assignable_from (klass, klassc);
}