(convert_for_assignment): Fix typo in testing for pointer to function
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 9 Mar 1995 14:00:50 +0000 (09:00 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 9 Mar 1995 14:00:50 +0000 (09:00 -0500)
type.

From-SVN: r9142

gcc/c-typeck.c

index 688393f7ae08714e7f43383fb147cf1850d9a282..d9d58af9848ae81f7cf0c3b2821092c9d8fc9d15 100644 (file)
@@ -3985,7 +3985,7 @@ convert_for_assignment (type, rhs, errtype, fundecl, funname, parmnum)
          /* Const and volatile mean something different for function types,
             so the usual warnings are not appropriate.  */
          else if (TREE_CODE (ttr) != FUNCTION_TYPE
-                  || TREE_CODE (ttl) != FUNCTION_TYPE)
+                  && TREE_CODE (ttl) != FUNCTION_TYPE)
            {
              if (! TYPE_READONLY (ttl) && TYPE_READONLY (ttr))
                warn_for_assignment ("%s discards `const' from pointer target type",