mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:43:24 +00:00
Silence warning in file.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d2f7732d22
commit
ba34b168be
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue