fgetc returns an int not a char.
Found by: powerpc builds failing due to comparing with EOF raised: "comparison is always false due to limited range of data type"
This commit is contained in:
parent
32a71a72e1
commit
e29c552990
@ -508,8 +508,7 @@ binexec(char *diffprog, char *f1, char *f2)
|
||||
static int
|
||||
istextfile(FILE *f)
|
||||
{
|
||||
int i;
|
||||
char ch;
|
||||
int ch, i;
|
||||
|
||||
if (f == NULL)
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user