From 64bcbf400ea6c955b029f74e1214dcd03b90f934 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Tue, 6 Mar 2018 15:53:22 -0500 Subject: [PATCH] Optimize Dict Check Condition --- lib/lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lz4.c b/lib/lz4.c index d147681..4f98efa 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -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); -- 2.7.4