PR ld/12613

* ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
This commit is contained in:
Alan Modra 2011-03-29 02:52:36 +00:00
parent 9382dad2ae
commit c3a7b1206d
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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;
}