MFC r293271:

Fix const conversion warning in lz4_decompress

Sponsored by:	Multiplay
This commit is contained in:
smh 2016-01-25 10:45:18 +00:00
parent c01d1bb4ae
commit dbb959f1e6

View File

@ -52,7 +52,7 @@ lz4_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int dum
* Returns 0 on success (decompression function returned non-negative)
* and non-zero on failure (decompression function returned negative).
*/
return (LZ4_uncompress_unknownOutputSize(s_start + 4, d_start, bufsiz,
return (LZ4_uncompress_unknownOutputSize((const char *)s_start + 4, d_start, bufsiz,
d_len) < 0);
}