summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorCyan4973 <cyan@fb.com>2018-04-21 07:11:51 (GMT)
committerCyan4973 <cyan@fb.com>2018-04-21 07:11:51 (GMT)
commitd1f21883d652ac0abae91bc04924747c82bdbabd (patch)
tree5f6483a673a6494d63de61fc1788cb3467af5731 /lib/lz4.c
parenta8a5dfd426cec6e3ac6c689a314aff5817de9ce3 (diff)
downloadlz4-d1f21883d652ac0abae91bc04924747c82bdbabd.zip
lz4-d1f21883d652ac0abae91bc04924747c82bdbabd.tar.gz
lz4-d1f21883d652ac0abae91bc04924747c82bdbabd.tar.bz2
fixed incorrect comment
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c6
1 files changed, 3 insertions, 3 deletions
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;