2002-09-20 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Fri, 20 Sep 2002 23:53:34 +0000 (23:53 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 20 Sep 2002 23:53:34 +0000 (23:53 -0000)
* ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum

svn path=/trunk/mcs/; revision=7671

mcs/mcs/ChangeLog
mcs/mcs/ecore.cs

index 3523a071d6379bb3068e87adc9de19c6e5ebb5c4..f563112e707c1b89f2d367e3badb5a3b0e1b9355 100755 (executable)
@@ -1,5 +1,7 @@
 2002-09-20  Miguel de Icaza  <miguel@ximian.com>
 
+       * ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum
+
        * decl.cs (FindType): Sorry about this, fixed the type lookup bug.
 
 2002-09-19  Miguel de Icaza  <miguel@ximian.com>
index b8aefc8f7ebd93b8b17be6e8d01a26f46f905a8b..d573467825c5c145595454529a3d0dbdf97bd2dc 100755 (executable)
@@ -2719,7 +2719,7 @@ namespace Mono.CSharp {
                //
                public static void StoreFromPtr (ILGenerator ig, Type type)
                {
-                       if (type.IsEnum)
+                       if (TypeManager.IsEnumType (type))
                                type = TypeManager.EnumToUnderlying (type);
                        if (type == TypeManager.int32_type || type == TypeManager.uint32_type)
                                ig.Emit (OpCodes.Stind_I4);