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

2
wc.c
View File

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