[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:
Bill Currie 2023-03-25 16:44:16 +09:00
parent ef2793010c
commit a058cff59f
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ VISIBLE char *
Qgets (QFile *file, char *buf, int count)
{
char *ret = buf;
char c;
int c;
while (buf - ret < count - 1) {
c = Qgetc (file);