aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
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 /gdb/c-lang.c
parent083147ab81cf6639e26326dac6a5fb222b7913f0 (diff)
downloadgdb-3f7f5fe45a81885b55c57faed8d110429b85a600.zip
gdb-3f7f5fe45a81885b55c57faed8d110429b85a600.tar.gz
gdb-3f7f5fe45a81885b55c57faed8d110429b85a600.tar.bz2
* c-lang.c (print_wchar): Remove unnecessary cast.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r--gdb/c-lang.c2
1 files changed, 1 insertions, 1 deletions
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 ("\\"));