summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 18:23:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 21:47:04 -0800
commitba34b168be72fac599fadb023f59f5429dda57f1 (patch)
tree455ef8c6aa8e06de80cda6ef43d545140b5eb64b /subsurface-core
parentd2f7732d22bbbac706dffca40d587d00d6f8deab (diff)
downloadsubsurface-ba34b168be72fac599fadb023f59f5429dda57f1.tar.gz
Silence warning in file.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/file.c b/subsurface-core/file.c
index 8286ce9f5..d16fe535d 100644
--- a/subsurface-core/file.c
+++ b/subsurface-core/file.c
@@ -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;