Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA] Fix typo in type of parameter "w" in print_wchar...
Date: Wed, 13 May 2009 09:43:00 -0000	[thread overview]
Message-ID: <20090513094343.GA9731@adacore.com> (raw)
In-Reply-To: <20090512080620.GC7584@adacore.com>

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

> > 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

[-- Attachment #2: c-lang.c.diff --]
[-- Type: text/x-diff, Size: 563 bytes --]

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 ("\\"));

      reply	other threads:[~2009-05-13  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25  0:37 Joel Brobecker
2009-04-25  8:50 ` Mark Kettenis
2009-05-07 18:38   ` Joel Brobecker
2009-05-07 18:53     ` Mark Kettenis
2009-05-07 20:48       ` Joel Brobecker
2009-05-12  8:06     ` Joel Brobecker
2009-05-13  9:43       ` Joel Brobecker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090513094343.GA9731@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox