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:
parent
c5892fe4f5
commit
6b6eea60f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue