mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-27 06:10:06 +08:00
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
@ -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…
Reference in New Issue
Block a user