mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:03:23 +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)
|
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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue