mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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
56344e478d
commit
ae9787228e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue