From 47081145232ba6b824dc108a7691cdbd8108e5d9 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Wed, 7 Mar 2012 13:01:39 +1100 Subject: [PATCH] Silence sign warnings in liblrzip.c --- liblrzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liblrzip.c b/liblrzip.c index ec5d0bd..cfcf926 100644 --- a/liblrzip.c +++ b/liblrzip.c @@ -663,7 +663,7 @@ bool lrzip_compress_full(void *dest, unsigned long *dest_len, const void *source if (fstat(fd, &st)) goto error; *dest_len = st.st_size; - if (unlikely(fread(dest, sizeof(char), st.st_size, d) != st.st_size)) + if (unlikely((i64)fread(dest, sizeof(char), st.st_size, d) != st.st_size)) goto error; if (unlikely(ferror(d))) goto error; @@ -710,7 +710,7 @@ bool lrzip_decompress(void *dest, unsigned long *dest_len, const void *source, u if (fstat(fd, &st)) goto error; *dest_len = st.st_size; - if (unlikely(fread(dest, sizeof(char), st.st_size, d) != st.st_size)) + if (unlikely((i64)fread(dest, sizeof(char), st.st_size, d) != st.st_size)) goto error; if (unlikely(ferror(d))) goto error;