summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-03-09 17:05:31 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-03-12 22:35:09 (GMT)
commit299f34909a2da7dc7096747e1c62cfe3994ec467 (patch)
tree1e681922ee09c2dcd48f799605bf52280f170491
parentf9fef255a12470b7beeaa8635b65fc837d835c84 (diff)
downloadlz4-299f34909a2da7dc7096747e1c62cfe3994ec467.zip
lz4-299f34909a2da7dc7096747e1c62cfe3994ec467.tar.gz
lz4-299f34909a2da7dc7096747e1c62cfe3994ec467.tar.bz2
Simpler Ternary Statements
-rw-r--r--lib/lz4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 94248be..6a680e6 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -582,9 +582,9 @@ LZ4_FORCE_INLINE int LZ4_compress_generic(
const LZ4_stream_t_internal* dictCtx = (const LZ4_stream_t_internal*) cctx->dictCtx;
const BYTE* const dictionary =
- (dictDirective == usingExtDictCtx ? dictCtx : cctx)->dictionary;
+ dictDirective == usingExtDictCtx ? dictCtx->dictionary : cctx->dictionary;
const U32 dictSize =
- (dictDirective == usingExtDictCtx ? dictCtx : cctx)->dictSize;
+ dictDirective == usingExtDictCtx ? dictCtx->dictSize : cctx->dictSize;
const BYTE* const lowRefLimit = (const BYTE*) source - dictSize;
const BYTE* const dictEnd = dictionary + dictSize;