Silence warning in file.c

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-09 18:23:48 -08:00
parent d2f7732d22
commit ba34b168be

View file

@ -57,7 +57,7 @@ int readfile(const char *filename, struct memblock *mem)
if (ret < 0) if (ret < 0)
goto free; goto free;
buf[ret] = 0; buf[ret] = 0;
if (ret == mem->size) if (ret == (int)mem->size) // converting to int loses a bit but size will never be that big
goto out; goto out;
errno = EIO; errno = EIO;
ret = -1; ret = -1;