diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 18:23:48 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 21:47:04 -0800 |
commit | ba34b168be72fac599fadb023f59f5429dda57f1 (patch) | |
tree | 455ef8c6aa8e06de80cda6ef43d545140b5eb64b /subsurface-core | |
parent | d2f7732d22bbbac706dffca40d587d00d6f8deab (diff) | |
download | subsurface-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.c | 2 |
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; |