mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-02-01 04:54:16 +01:00
Silence sign warnings in liblrzip.c
This commit is contained in:
parent
e6ae7c528a
commit
4708114523
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue