Author: martin
Date: 2007-05-14 09:40:37 -0400 (Mon, 14 May 2007)
New Revision: 77345

Modified:
   trunk/debugger/languages/mono/MonoClassInfo.cs
   trunk/debugger/languages/mono/MonoLanguageBackend.cs
Log:
Fix compiler warning.

Modified: trunk/debugger/languages/mono/MonoClassInfo.cs
===================================================================
--- trunk/debugger/languages/mono/MonoClassInfo.cs      2007-05-14 13:33:16 UTC 
(rev 77344)
+++ trunk/debugger/languages/mono/MonoClassInfo.cs      2007-05-14 13:40:37 UTC 
(rev 77345)
@@ -67,6 +67,10 @@
                        }
                }
 
+               public bool IsGenericClass {
+                       get { return !GenericClass.IsNull; }
+               }
+
                public int[] FieldOffsets {
                        get { return field_offsets; }
                }

Modified: trunk/debugger/languages/mono/MonoLanguageBackend.cs
===================================================================
--- trunk/debugger/languages/mono/MonoLanguageBackend.cs        2007-05-14 
13:33:16 UTC (rev 77344)
+++ trunk/debugger/languages/mono/MonoLanguageBackend.cs        2007-05-14 
13:40:37 UTC (rev 77345)
@@ -628,7 +628,7 @@
 
                        info = new MonoClassInfo (memory, this, token, 
klass_address);
                        class_info_by_addr.Add (klass_address, info);
-                       if (info.GenericClass.IsNull)
+                       if (!info.IsGenericClass)
                                class_info_by_type.Add (tdef, info);
                        return info;
                }

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

Reply via email to