'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))
|
if (feof(f))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
char c = fgetc(f);
|
int c = fgetc(f);
|
||||||
|
|
||||||
if (c == '\n' || c == EOF)
|
if (c == '\n' || c == EOF)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue