diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-03-09 17:05:31 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-03-12 22:35:09 (GMT) |
commit | 299f34909a2da7dc7096747e1c62cfe3994ec467 (patch) | |
tree | 1e681922ee09c2dcd48f799605bf52280f170491 /lib/lz4.c | |
parent | f9fef255a12470b7beeaa8635b65fc837d835c84 (diff) | |
download | lz4-299f34909a2da7dc7096747e1c62cfe3994ec467.zip lz4-299f34909a2da7dc7096747e1c62cfe3994ec467.tar.gz lz4-299f34909a2da7dc7096747e1c62cfe3994ec467.tar.bz2 |
Simpler Ternary Statements
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |