From b3b35f14b0e4ea66542d9b60556027c6487c2641 Mon Sep 17 00:00:00 2001 From: Matt Austern Date: Thu, 20 Jan 2005 01:43:21 +0000 Subject: [PATCH] typeck.c (comptypes): Handle return code from objc_comptypes correctly. * typeck.c (comptypes): Handle return code from objc_comptypes correctly. From-SVN: r93934 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/typeck.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5891fde0a50..d593003e86d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-01-19 Matt Austern + + * typeck.c (comptypes): Handle return code from objc_comptypes + correctly. + 2005-01-19 Kazu Hirata * cp-tree.h, name-lookup.h: Remove unused prototypes. diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 6ce3811bf3f..70dae4b0ed4 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. */ -- 2.30.2