typeck.c (comptypes): Handle return code from objc_comptypes correctly.
authorMatt Austern <austern@apple.com>
Thu, 20 Jan 2005 01:43:21 +0000 (01:43 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Thu, 20 Jan 2005 01:43:21 +0000 (01:43 +0000)
* typeck.c (comptypes): Handle return code from objc_comptypes
correctly.

From-SVN: r93934

gcc/cp/ChangeLog
gcc/cp/typeck.c

index 5891fde0a50a662e5747165803c9ba0d39fb7818..d593003e86dc8dbfae7ea5ec4d09cc685ef50510 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-19  Matt Austern  <austern@apple.com>
+
+       * typeck.c (comptypes): Handle return code from objc_comptypes
+       correctly.
+       
 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
 
        * cp-tree.h, name-lookup.h: Remove unused prototypes.
index 6ce3811bf3fa61ec29cbfc36a6ee1c00a61e5004..70dae4b0ed445f517c8f37386f74afb96d5ad09c 100644 (file)
@@ -1020,7 +1020,7 @@ comptypes (tree t1, tree t2, int strict)
       
       /* We may be dealing with Objective-C instances...  */
       if (TREE_CODE (t1) == RECORD_TYPE
-         && (retval = objc_comptypes (t1, t2, 0) >= 0))
+         && ((retval = objc_comptypes (t1, t2, 0)) >= 0))
          return retval;
       /* ...but fall through if we are not.  */