This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: fix Obj-C++ typo


I'm almost willing to commit this as obvious, but,...

OK to commit to mainline?

--Matt



* typeck.c (comptypes): Handle return code from objc_comptypes correctly.

Index: gcc/cp/typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/typeck.c,v
retrieving revision 1.606
diff -p -r1.606 typeck.c
*** gcc/cp/typeck.c     22 Dec 2004 18:00:39 -0000      1.606
--- gcc/cp/typeck.c     20 Jan 2005 00:47:52 -0000
*************** comptypes (tree t1, tree t2, int strict)
*** 1020,1026 ****

        /* We may be dealing with Objective-C instances...  */
        if (TREE_CODE (t1) == RECORD_TYPE
!         && (retval = objc_comptypes (t1, t2, 0) >= 0))
           return retval;
        /* ...but fall through if we are not.  */

--- 1020,1026 ----

        /* We may be dealing with Objective-C instances...  */
        if (TREE_CODE (t1) == RECORD_TYPE
!         && ((retval = objc_comptypes (t1, t2, 0)) >= 0))
           return retval;
        /* ...but fall through if we are not.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]