Simpler Ternary Statements

This commit is contained in:
W. Felix Handte 2018-03-09 12:05:31 -05:00
parent f9fef255a1
commit 299f34909a

View File

@ -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 LZ4_stream_t_internal* dictCtx = (const LZ4_stream_t_internal*) cctx->dictCtx;
const BYTE* const dictionary = const BYTE* const dictionary =
(dictDirective == usingExtDictCtx ? dictCtx : cctx)->dictionary; dictDirective == usingExtDictCtx ? dictCtx->dictionary : cctx->dictionary;
const U32 dictSize = 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 lowRefLimit = (const BYTE*) source - dictSize;
const BYTE* const dictEnd = dictionary + dictSize; const BYTE* const dictEnd = dictionary + dictSize;