aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-05-13 09:41:57 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-05-13 09:41:57 +0000
commit3f7f5fe45a81885b55c57faed8d110429b85a600 (patch)
treee0607ae73fd7a1cba610f60b7cff1c9d02236382
parent083147ab81cf6639e26326dac6a5fb222b7913f0 (diff)
downloadfsf-binutils-gdb-3f7f5fe45a81885b55c57faed8d110429b85a600.zip
fsf-binutils-gdb-3f7f5fe45a81885b55c57faed8d110429b85a600.tar.gz
fsf-binutils-gdb-3f7f5fe45a81885b55c57faed8d110429b85a600.tar.bz2
* c-lang.c (print_wchar): Remove unnecessary cast.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/c-lang.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cec02a6..42d08cd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-13 Joel Brobecker <brobecker@adacore.com>
+
+ * c-lang.c (print_wchar): Remove unnecessary cast.
+
2009-05-12 Jim Blandy <jimb@red-bean.com>
* MAINTAINERS: Remove self as m32c target maintainer.
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index f95c98f..b605d3e 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -166,7 +166,7 @@ print_wchar (gdb_wint_t w, const gdb_byte *orig, int orig_len,
&& 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 ("\\"));