fixed minor conversion warning
This commit is contained in:
parent
f094f53144
commit
4c5c711b7a
@ -1127,13 +1127,12 @@ FORCE_INLINE int LZ4_decompress_generic(
|
||||
|
||||
/* Main Loop : decode sequences */
|
||||
while (1) {
|
||||
unsigned token;
|
||||
size_t length;
|
||||
const BYTE* match;
|
||||
size_t offset;
|
||||
|
||||
/* get literal length */
|
||||
token = *ip++;
|
||||
unsigned const token = *ip++;
|
||||
if ((length=(token>>ML_BITS)) == RUN_MASK) {
|
||||
unsigned s;
|
||||
do {
|
||||
@ -1168,7 +1167,7 @@ FORCE_INLINE int LZ4_decompress_generic(
|
||||
offset = LZ4_readLE16(ip); ip+=2;
|
||||
match = op - offset;
|
||||
if ((checkOffset) && (unlikely(match < lowLimit))) goto _output_error; /* Error : offset outside buffers */
|
||||
LZ4_write32(op, offset); /* costs ~1%; silence an msan warning when offset==0 */
|
||||
LZ4_write32(op, (U32)offset); /* costs ~1%; silence an msan warning when offset==0 */
|
||||
|
||||
/* get matchlength */
|
||||
length = token & ML_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user