* icall.c (ves_icall_MonoType_GetElementType): For enums, return null
rather than the underlying type. Based on a patch by Ben Maurer. Fixes
#315863.
svn path=/trunk/mono/; revision=86944
+2007-10-05 Alp Toker <alp@atoker.com>
+
+ * icall.c (ves_icall_MonoType_GetElementType): For enums, return null
+ rather than the underlying type. Based on a patch by Ben Maurer. Fixes
+ #315863.
+
2007-10-04 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (verify_type_compatibility_full): verification of
MONO_ARCH_SAVE_REGS;
- // GelElementType should only return a type for:
+ // GetElementType should only return a type for:
// Array Pointer PassedByRef
if (type->type->byref)
return mono_type_get_object (mono_object_domain (type), &class->byval_arg);
- if (class->enumtype && class->enum_basetype) /* types that are modifierd typebuilkders may not have enum_basetype set */
- return mono_type_get_object (mono_object_domain (type), class->enum_basetype);
else if (class->element_class && MONO_CLASS_IS_ARRAY (class))
return mono_type_get_object (mono_object_domain (type), &class->element_class->byval_arg);
else if (class->element_class && type->type->type == MONO_TYPE_PTR)