Use int instead of char for getc()

This commit is contained in:
sin 2013-07-20 12:09:42 +01:00 committed by David Galos
parent 439489b566
commit c1730c78de
1 changed files with 1 additions and 1 deletions

2
wc.c
View File

@ -72,7 +72,7 @@ void
wc(FILE *fp, const char *str)
{
bool word = false;
char c;
int c;
long nc = 0, nl = 0, nw = 0;
while((c = getc(fp)) != EOF) {