From: Cyan4973 Date: Tue, 24 Apr 2018 02:26:02 +0000 (-0700) Subject: re-ordered parenthesis X-Git-Tag: upstream/1.9.3~8^2~26^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44bff3fd3b4fc6280cad3f8b930d6a404e3bb236;p=platform%2Fupstream%2Flz4.git re-ordered parenthesis to avoid mixing && and & as suggested by @terrelln --- diff --git a/lib/lz4.c b/lib/lz4.c index d794c35..b2e08e3 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -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; size_t const off = LZ4_readLE16(ip+ll); const BYTE* const matchPtr = op + ll - off; /* pointer underflow risk ? */