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).
This commit is contained in:
Thomas Preud'homme 2013-01-24 10:55:18 +01:00
parent c5892fe4f5
commit 6b6eea60f3

View File

@ -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)