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]

C++ PATCH for typo



Thanks to Graham, who spotted a warning from GCC (why didn't I get
it?), tragedy, in the form of bad parenthesization, has been avoided!

(Translation: I mis-parenthesized a recent patch.) 

Here's the fix.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

1999-06-05  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (grokdeclarator): Fix typo in last change.

Index: decl.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl.c,v
retrieving revision 1.370
diff -u -p -r1.370 decl.c
--- decl.c	1999/06/03 10:07:18	1.370
+++ decl.c	1999/06/05 18:00:31
@@ -9935,10 +9935,10 @@ grokdeclarator (declarator, declspecs, d
 	     controlled just like plain `int', but a typedef for
 	     `signed int' cannot be so controlled.  */
 	  && !(typedef_decl 
-	       && C_TYPEDEF_EXPLICITLY_SIGNED (typedef_decl)))
+	       && C_TYPEDEF_EXPLICITLY_SIGNED (typedef_decl))
 	  && (TREE_CODE (type) == INTEGER_TYPE
 	      || TREE_CODE (type) == CHAR_TYPE)
-	  && !same_type_p (TYPE_MAIN_VARIANT (type), wchar_type_node))
+	  && !same_type_p (TYPE_MAIN_VARIANT (type), wchar_type_node)))
     {
       if (longlong)
 	type = long_long_unsigned_type_node;


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