From 6b6eea60f3ff5134b990123127d3574955169a4f Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 24 Jan 2013 10:55:18 +0100 Subject: [PATCH] Fix [f]getc return value usage in 40_stdio test Store [f]getc return value into an int instead of char, as per prototype. This fix an issue when char is unsigned (as is on arm for both tcc and gcc). --- tests2/40_stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests2/40_stdio.c b/tests2/40_stdio.c index 575127af..b9860930 100644 --- a/tests2/40_stdio.c +++ b/tests2/40_stdio.c @@ -16,7 +16,7 @@ int main() printf("%s", freddy); - char InChar; + int InChar; char ShowChar; f = fopen("fred.txt", "r"); while ( (InChar = fgetc(f)) != EOF) -- 2.11.4.GIT