2004-02-08 Bernie Solomon <bernard@ugsolutions.com>
authorBernie Solomon <bernard@mono-cvs.ximian.com>
Mon, 9 Feb 2004 04:58:36 +0000 (04:58 -0000)
committerBernie Solomon <bernard@mono-cvs.ximian.com>
Mon, 9 Feb 2004 04:58:36 +0000 (04:58 -0000)
* class.h (mono_class_has_parent): add parens to expansion
so you can ! this.

svn path=/trunk/mono/; revision=22895

mono/metadata/ChangeLog
mono/metadata/class.h

index 5375c0616de60f3fddda984c87fe9e9e5314f9c0..12f4c3a0e65bc1cb8cf20668c535116f23fe7d45 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-08  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * class.h (mono_class_has_parent): add parens to expansion
+       so you can ! this.
+
 2004-02-08  Martin Baulig  <martin@ximian.com>
 
        * image.h (MonoImage): Removed `generics_cache'.
index b119fb2f1f7280d5113b83645c80f6a846f4d8ab..d743bdd71459d3d16d366b06ec7f2fda4196ac3e 100644 (file)
@@ -240,7 +240,7 @@ struct _MonoGenericParam {
        MonoClass** constraints; /* NULL means end of list */
 };
 
-#define mono_class_has_parent(klass,parent) ((klass)->idepth >= (parent)->idepth) && ((klass)->supertypes [(parent)->idepth - 1] == (parent))
+#define mono_class_has_parent(klass,parent) (((klass)->idepth >= (parent)->idepth) && ((klass)->supertypes [(parent)->idepth - 1] == (parent)))
 
 typedef struct {
        gulong new_object_count;