From: Cyan4973 Date: Sat, 21 Apr 2018 07:11:51 +0000 (-0700) Subject: fixed incorrect comment X-Git-Tag: upstream/1.9.3~8^2~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1f21883d652ac0abae91bc04924747c82bdbabd;p=platform%2Fupstream%2Flz4.git fixed incorrect comment --- diff --git a/lib/lz4.c b/lib/lz4.c index 3ca1126..2205162 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -776,10 +776,10 @@ LZ4_FORCE_INLINE int LZ4_compress_generic( forwardH = LZ4_hashPosition(forwardIp, tableType); LZ4_putIndexOnHash(current, h, cctx->hashTable, tableType); - if ((dictIssue == dictSmall) && (matchIndex < prefixIdxLimit)) continue; /* match outside of valid area */ + if ((dictIssue == dictSmall) && (matchIndex < prefixIdxLimit)) continue; /* match outside of valid area */ assert(matchIndex < current); - if ((tableType != byU16) && (matchIndex+MAX_DISTANCE < current)) continue; /* too far - note: works even if matchIndex overflows */ - if (tableType == byU16) assert((current - matchIndex) <= MAX_DISTANCE); /* too_far presumed impossible with byU16 */ + if ((tableType != byU16) && (matchIndex+MAX_DISTANCE < current)) continue; /* too far */ + if (tableType == byU16) assert((current - matchIndex) <= MAX_DISTANCE); /* too_far presumed impossible with byU16 */ if (LZ4_read32(match) == LZ4_read32(ip)) { if (maybe_extMem) offset = current - matchIndex;