[util] Fix incorrect check for result of Qgetc
Qgetc returns int, not char. Found via arm compile due to sign of bare char (or lack thereof).
This commit is contained in:
parent
ef2793010c
commit
a058cff59f
|
@ -412,7 +412,7 @@ VISIBLE char *
|
||||||
Qgets (QFile *file, char *buf, int count)
|
Qgets (QFile *file, char *buf, int count)
|
||||||
{
|
{
|
||||||
char *ret = buf;
|
char *ret = buf;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
while (buf - ret < count - 1) {
|
while (buf - ret < count - 1) {
|
||||||
c = Qgetc (file);
|
c = Qgetc (file);
|
||||||
|
|
Loading…
Reference in New Issue