diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-01-24 10:55:18 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-01-24 10:55:18 +0100 |
| commit | 6b6eea60f3ff5134b990123127d3574955169a4f (patch) | |
| tree | 91cc1a5294a5fb94b65517e23a4de27ab34dcacd /tests2/40_stdio.c | |
| parent | c5892fe4f5b285dddea4ed89edba749e40346d1f (diff) | |
| download | tinycc-6b6eea60f3ff5134b990123127d3574955169a4f.tar.gz tinycc-6b6eea60f3ff5134b990123127d3574955169a4f.tar.bz2 | |
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).
Diffstat (limited to 'tests2/40_stdio.c')
| -rw-r--r-- | tests2/40_stdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests2/40_stdio.c b/tests2/40_stdio.c index 575127a..b986093 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) |
