This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [RFA] Fix typo in type of parameter "w" in print_wchar...


> > 2009-05-07  Joel Brobecker  <brobecker@adacore.com>
> > 
> >         * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
> >         pushing it on the output obstack.

I forgot to remove the unnecessary cast when I checked the patch in :-(.
Fixed thusly.

2009-05-13  Joel Brobecker  <brobecker@adacore.com>

        * c-lang.c (print_wchar): Remove unnecessary cast.

Really sorry about that...
-- 
Joel
Index: c-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/c-lang.c,v
retrieving revision 1.67
diff -u -p -r1.67 c-lang.c
--- c-lang.c	12 May 2009 08:05:52 -0000	1.67
+++ c-lang.c	13 May 2009 09:40:44 -0000
@@ -166,7 +166,7 @@ print_wchar (gdb_wint_t w, const gdb_byt
 					    && w != LCST ('8')
 					    && w != LCST ('9'))))
     {
-      gdb_wchar_t wchar = (gdb_wchar_t) w;
+      gdb_wchar_t wchar = w;
 
       if (w == gdb_btowc (quoter) || w == LCST ('\\'))
 	obstack_grow_wstr (output, LCST ("\\"));

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