From ba34b168be72fac599fadb023f59f5429dda57f1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Mar 2016 18:23:48 -0800 Subject: Silence warning in file.c Signed-off-by: Dirk Hohndel --- subsurface-core/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subsurface-core') 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; -- cgit v1.2.3-70-g09d2