diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-03-06 20:53:22 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-03-12 18:58:43 (GMT) |
commit | 64bcbf400ea6c955b029f74e1214dcd03b90f934 (patch) | |
tree | 5d9fa113db89cf2a185006236ba059ce8f0d034d /lib/lz4.c | |
parent | b78cf67c9624a6a826ceaa2a9d65f5feb1dd0cfd (diff) | |
download | lz4-64bcbf400ea6c955b029f74e1214dcd03b90f934.zip lz4-64bcbf400ea6c955b029f74e1214dcd03b90f934.tar.gz lz4-64bcbf400ea6c955b029f74e1214dcd03b90f934.tar.bz2 |
Optimize Dict Check Condition
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -708,7 +708,7 @@ _next_match: /* Encode MatchLength */ { unsigned matchCode; - if ((dictDirective==usingExtDict || dictDirective==usingExtDictCtx) && (dictionary != NULL) && (lowLimit==dictLowLimit)) { + if ((dictDirective==usingExtDict || dictDirective==usingExtDictCtx) && ((lowLimit==dictLowLimit) & (dictionary != NULL))) { const BYTE* limit; match += refDelta; limit = ip + (dictEnd-match); |