This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix typo in type of parameter "w" in print_wchar...
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 13 May 2009 11:43:43 +0200
- Subject: Re: [RFA] Fix typo in type of parameter "w" in print_wchar...
- References: <20090425003658.GA32745@adacore.com> <200904250849.n3P8n5BU002469@brahms.sibelius.xs4all.nl> <20090507183753.GE659@adacore.com> <20090512080620.GC7584@adacore.com>
> > 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 ("\\"));