commit c1730c78de68b99c0e93a7a88612ddaaf7c35454 parent 439489b5668b5f57ff32aef5ebc6858658992f88 Author: sin <sin@2f30.org> Date: Sat, 20 Jul 2013 12:09:42 +0100 Use int instead of char for getc() Diffstat:
M | wc.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wc.c b/wc.c @@ -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) {