aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2005-01-20 01:43:21 +0000
committerMatt Austern <austern@gcc.gnu.org>2005-01-20 01:43:21 +0000
commitb3b35f14b0e4ea66542d9b60556027c6487c2641 (patch)
tree9c7385f420c7ba02b7db097cbd8b7b160fa2a0ad /gcc
parent29de1f673fdddb591628a61661e05bcbb1f7a47b (diff)
downloadgcc-b3b35f14b0e4ea66542d9b60556027c6487c2641.zip
gcc-b3b35f14b0e4ea66542d9b60556027c6487c2641.tar.gz
gcc-b3b35f14b0e4ea66542d9b60556027c6487c2641.tar.bz2
typeck.c (comptypes): Handle return code from objc_comptypes correctly.
* typeck.c (comptypes): Handle return code from objc_comptypes correctly. From-SVN: r93934
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/typeck.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 5891fde..d593003 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 6ce3811..70dae4b 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -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. */