force unsigned char compares
From-SVN: r44219
This commit is contained in:
parent
907cb30e6e
commit
90376ae2b4
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-20 Bruce Korb <bkorb@gnu.org>
|
||||||
|
|
||||||
|
* fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
|
||||||
|
because getc() and char* may disagree on signedness.
|
||||||
|
|
||||||
2001-07-20 Richard Henderson <rth@redhat.com>
|
2001-07-20 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* doc/rtl.texi (REG_DEAD): Update for current semantics.
|
* doc/rtl.texi (REG_DEAD): Update for current semantics.
|
||||||
|
@ -1261,7 +1261,7 @@ test_for_changes (read_fd)
|
|||||||
{
|
{
|
||||||
FILE *in_fp = fdopen (read_fd, "r");
|
FILE *in_fp = fdopen (read_fd, "r");
|
||||||
FILE *out_fp = (FILE *) NULL;
|
FILE *out_fp = (FILE *) NULL;
|
||||||
char *pz_cmp = pz_curr_data;
|
unsigned char *pz_cmp = (unsigned char*)pz_curr_data;
|
||||||
|
|
||||||
#ifdef DO_STATS
|
#ifdef DO_STATS
|
||||||
fixed_ct++;
|
fixed_ct++;
|
||||||
@ -1273,6 +1273,7 @@ test_for_changes (read_fd)
|
|||||||
ch = getc (in_fp);
|
ch = getc (in_fp);
|
||||||
if (ch == EOF)
|
if (ch == EOF)
|
||||||
break;
|
break;
|
||||||
|
ch &= 0xFF; /* all bytes are 8 bits */
|
||||||
|
|
||||||
/* IF we are emitting the output
|
/* IF we are emitting the output
|
||||||
THEN emit this character, too.
|
THEN emit this character, too.
|
||||||
|
Loading…
Reference in New Issue
Block a user