[PATCH] Use int instead of char for getc()

From: sin <sin_AT_2f30.org>
Date: Sat, 20 Jul 2013 12:09:42 +0100

---
 wc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wc.c b/wc.c
index 45d6dda..4226a44 100644
--- a/wc.c
+++ b/wc.c
_AT_@ -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) {
-- 
1.8.3.3
--pf9I7BMVVzbSWLtt--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 20 2013 - 16:48:03 CEST