Skip to content
Snippets Groups Projects
Commit 567aa01a authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra
Browse files

Silence signed/unsigned comparison warning for file size


off_t is signed, size_t is not, but the size of a struct cache_file
definitely fits in an off_t.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 469ce079
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -123,7 +123,7 @@ ld_cache_open (ldcache_t *cache, const char *path)
fstat( cache->fd, &ldcache );
// cache file must be at least this big or it's invalid:
if( ldcache.st_size < sizeof( struct cache_file ) )
if( ldcache.st_size < (off_t) sizeof( struct cache_file ) )
goto cleanup;
cache->mmap =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment