diff options
author | Cyan4973 <cyan@fb.com> | 2018-04-24 02:26:02 (GMT) |
---|---|---|
committer | Cyan4973 <cyan@fb.com> | 2018-04-24 02:26:02 (GMT) |
commit | 44bff3fd3b4fc6280cad3f8b930d6a404e3bb236 (patch) | |
tree | 52c5885d71fd781fbddf766ae7a95318d384d532 /lib/lz4.c | |
parent | 644b7bd2b62b10da2b464d71655ae2ed523fdc33 (diff) | |
download | lz4-44bff3fd3b4fc6280cad3f8b930d6a404e3bb236.zip lz4-44bff3fd3b4fc6280cad3f8b930d6a404e3bb236.tar.gz lz4-44bff3fd3b4fc6280cad3f8b930d6a404e3bb236.tar.bz2 |
re-ordered parenthesis
to avoid mixing && and &
as suggested by @terrelln
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1538,8 +1538,9 @@ LZ4_FORCE_INLINE int LZ4_decompress_generic( * NOTE: The loop begins with a read, so we must have one byte left at the end. */ if (endOnInput && ((ip + 14 /*maxLL*/ + 2 /*offset*/ < iend) - & (op + 14 /*maxLL*/ + 18 /*maxML*/ <= oend)) - & ((token < (15<<ML_BITS)) & ((token & ML_MASK) != 15)) ) { + & (op + 14 /*maxLL*/ + 18 /*maxML*/ <= oend) + & (token < (15<<ML_BITS)) + & ((token & ML_MASK) != 15) ) ) { size_t const ll = token >> ML_BITS; size_t const off = LZ4_readLE16(ip+ll); const BYTE* const matchPtr = op + ll - off; /* pointer underflow risk ? */ |