diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-05-02 14:24:03 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-05-02 14:24:03 +0000 |
commit | 2d545b822e56d78c142866649b797aa7e831a661 (patch) | |
tree | e3e363ee8b2ba08c2827ec9824ae291de9941540 /gas/config/tc-tic30.c | |
parent | 38fc1cb168d5f37b2089ea4c5a43cedc8b1604c4 (diff) | |
download | gdb-2d545b822e56d78c142866649b797aa7e831a661.zip gdb-2d545b822e56d78c142866649b797aa7e831a661.tar.gz gdb-2d545b822e56d78c142866649b797aa7e831a661.tar.bz2 |
2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (output_invalid_buf): Change size for
unsigned char.
* config/tc-tic30.c (output_invalid_buf): Likewise.
* config/tc-i386.c (output_invalid): Cast none-ascii char to
unsigned char.
* config/tc-tic30.c (output_invalid): Likewise.
Diffstat (limited to 'gas/config/tc-tic30.c')
-rw-r--r-- | gas/config/tc-tic30.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-tic30.c b/gas/config/tc-tic30.c index aa0b7b7..7b3439f 100644 --- a/gas/config/tc-tic30.c +++ b/gas/config/tc-tic30.c @@ -273,7 +273,7 @@ struct tic30_insn struct tic30_insn insn; static int found_parallel_insn; -static char output_invalid_buf[16]; +static char output_invalid_buf[sizeof (unsigned char) * 2 + 6]; static char * output_invalid (char c) @@ -283,7 +283,7 @@ output_invalid (char c) "'%c'", c); else snprintf (output_invalid_buf, sizeof (output_invalid_buf), - "(0x%x)", (unsigned) c); + "(0x%x)", (unsigned char) c); return output_invalid_buf; } |