Silence warning in file.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d2f7732d22
commit
ba34b168be
@ -57,7 +57,7 @@ int readfile(const char *filename, struct memblock *mem)
|
||||
if (ret < 0)
|
||||
goto free;
|
||||
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;
|
||||
errno = EIO;
|
||||
ret = -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user