Author: martin
Date: 2006-03-07 00:39:52 -0500 (Tue, 07 Mar 2006)
New Revision: 57648

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/object.c
Log:
2006-03-07  Martin Baulig  <[EMAIL PROTECTED]>

        * object.c
        (mono_field_get_value_object): Add support for MONO_TYPE_GENERICINST.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2006-03-07 05:32:32 UTC (rev 57647)
+++ trunk/mono/mono/metadata/ChangeLog  2006-03-07 05:39:52 UTC (rev 57648)
@@ -1,5 +1,10 @@
 2006-03-07  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * object.c
+       (mono_field_get_value_object): Add support for MONO_TYPE_GENERICINST.
+
+2006-03-07  Martin Baulig  <[EMAIL PROTECTED]>
+
        * class.c
        (mono_class_get_full): Don't inflate TYPEDEF entries; fixes the
        regression introduced in r56970; see gtest-252.cs.

Modified: trunk/mono/mono/metadata/object.c
===================================================================
--- trunk/mono/mono/metadata/object.c   2006-03-07 05:32:32 UTC (rev 57647)
+++ trunk/mono/mono/metadata/object.c   2006-03-07 05:39:52 UTC (rev 57648)
@@ -1559,6 +1559,9 @@
        case MONO_TYPE_VALUETYPE:
                is_ref = field->type->byref;
                break;
+       case MONO_TYPE_GENERICINST:
+               is_ref = 
!field->type->data.generic_class->container_class->valuetype;
+               break;
        default:
                g_error ("type 0x%x not handled in "
                         "mono_field_get_value_object", field->type->type);

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

Reply via email to