diff options
author | Cyan4973 <cyan@fb.com> | 2018-04-21 07:11:51 (GMT) |
---|---|---|
committer | Cyan4973 <cyan@fb.com> | 2018-04-21 07:11:51 (GMT) |
commit | d1f21883d652ac0abae91bc04924747c82bdbabd (patch) | |
tree | 5f6483a673a6494d63de61fc1788cb3467af5731 /lib/lz4.c | |
parent | a8a5dfd426cec6e3ac6c689a314aff5817de9ce3 (diff) | |
download | lz4-d1f21883d652ac0abae91bc04924747c82bdbabd.zip lz4-d1f21883d652ac0abae91bc04924747c82bdbabd.tar.gz lz4-d1f21883d652ac0abae91bc04924747c82bdbabd.tar.bz2 |
fixed incorrect comment
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |