* pa.c (output_ascii): Cast `p' to unsigned char.

From-SVN: r47504
This commit is contained in:
John David Anglin 2001-12-01 02:19:02 +00:00 committed by John David Anglin
parent 58d07d8f3e
commit 6b5ffd4e3e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-11-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.c (output_ascii): Cast `p' to unsigned char.
2001-11-30 Daniel Berlin <dan@cgsoftware.com>
* config/rs6000/rs6000.c (altivec_expand_builtin): add

View File

@ -2539,7 +2539,7 @@ output_ascii (file, p, size)
int io = 0;
for (io = 0, co = 0; io < MIN (4, size - i); io++)
{
register unsigned int c = p[i + io];
register unsigned int c = (unsigned char) p[i + io];
if (c == '\"' || c == '\\')
partial_output[co++] = '\\';