diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-12-01 02:19:02 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2001-12-01 02:19:02 +0000 |
commit | 6b5ffd4e3e9746eb41cc0ac0ccc376d786700bd9 (patch) | |
tree | c7ef0d2f0ba04d295bc0cc88a7200f9582dc1f0e | |
parent | 58d07d8f3eda79bbe4580fa1e2fa35386977fd59 (diff) | |
download | gcc-6b5ffd4e3e9746eb41cc0ac0ccc376d786700bd9.zip gcc-6b5ffd4e3e9746eb41cc0ac0ccc376d786700bd9.tar.gz gcc-6b5ffd4e3e9746eb41cc0ac0ccc376d786700bd9.tar.bz2 |
* pa.c (output_ascii): Cast `p' to unsigned char.
From-SVN: r47504
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71bacf5..c6c0237 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 617071e..3128c51 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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++] = '\\'; |