'fgetc()' returns int
This commit is contained in:
parent
a56d446664
commit
83ceed5592
|
@ -321,7 +321,7 @@ readLine(FILE *f, std::vector<char> &buffer)
|
|||
if (feof(f))
|
||||
break;
|
||||
|
||||
char c = fgetc(f);
|
||||
int c = fgetc(f);
|
||||
|
||||
if (c == '\n' || c == EOF)
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue