Author: martin
Date: 2005-03-17 07:31:38 -0500 (Thu, 17 Mar 2005)
New Revision: 41942

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/class.c
Log:
2005-03-17  Martin Baulig  <[EMAIL PROTECTED]>

        * class.c (inflate_generic_type): Add MONO_TYPE_ARRAY.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-03-17 12:30:43 UTC (rev 41941)
+++ trunk/mono/mono/metadata/ChangeLog  2005-03-17 12:31:38 UTC (rev 41942)
@@ -1,3 +1,7 @@
+2005-03-17  Martin Baulig  <[EMAIL PROTECTED]>
+
+       * class.c (inflate_generic_type): Add MONO_TYPE_ARRAY.
+
 2005-03-16 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * file-io.c: disabled file async. IO using aio_*. It uses the

Modified: trunk/mono/mono/metadata/class.c
===================================================================
--- trunk/mono/mono/metadata/class.c    2005-03-17 12:30:43 UTC (rev 41941)
+++ trunk/mono/mono/metadata/class.c    2005-03-17 12:31:38 UTC (rev 41942)
@@ -326,6 +326,16 @@
                nt->data.klass = mono_class_from_mono_type (inflated);
                return nt;
        }
+       case MONO_TYPE_ARRAY: {
+               MonoClass *eclass = type->data.array->eklass;
+               MonoType *nt, *inflated = inflate_generic_type 
(&eclass->byval_arg, context);
+               if (!inflated)
+                       return NULL;
+               nt = dup_type (type, type);
+               nt->data.array = g_memdup (nt->data.array, sizeof 
(MonoArrayType));
+               nt->data.array->eklass = mono_class_from_mono_type (inflated);
+               return nt;
+       }
        case MONO_TYPE_GENERICINST: {
                MonoGenericClass *ngclass = inflate_generic_class 
(type->data.generic_class, context);
                MonoType *nt = dup_type (type, type);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to