diff options
author | Alan Modra <amodra@gmail.com> | 2011-03-29 02:52:36 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-03-29 02:52:36 +0000 |
commit | c3a7b1206d72edcfeb965fdbd6cfd0c9d0100eba (patch) | |
tree | eadc379401a4f8cb895abe4ce14dcd724f65bf47 /ld | |
parent | 9382dad2ae0113981f7b1a27145d6d790b492b55 (diff) | |
download | gdb-c3a7b1206d72edcfeb965fdbd6cfd0c9d0100eba.zip gdb-c3a7b1206d72edcfeb965fdbd6cfd0c9d0100eba.tar.gz gdb-c3a7b1206d72edcfeb965fdbd6cfd0c9d0100eba.tar.bz2 |
PR ld/12613
* ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlex.l | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index bcfd301..e41fc13 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2011-03-29 Alan Modra <amodra@gmail.com> + + PR ld/12613 + * ldlex.l (lex_warn_invalid): Don't assume char is unsigned. + 2011-03-26 John Marino <binutils@marino.st> * configure.host: Update *-*-dragonfly* host entry. @@ -689,7 +689,7 @@ lex_warn_invalid (char *where, char *what) if (! ISPRINT (*what)) { - sprintf (buf, "\\%03o", (unsigned int) *what); + sprintf (buf, "\\%03o", *(unsigned char *) what); what = buf; } |