Fix test_filter_flags to match the new restriction of lc+lp.
This commit is contained in:
parent
eaafc4367c
commit
57b9a145a5
|
@ -258,6 +258,9 @@ test_lzma(void)
|
||||||
lp <= LZMA_LITERAL_POS_BITS_MAX; ++lp) {
|
lp <= LZMA_LITERAL_POS_BITS_MAX; ++lp) {
|
||||||
for (uint32_t pb = LZMA_POS_BITS_MIN;
|
for (uint32_t pb = LZMA_POS_BITS_MIN;
|
||||||
pb <= LZMA_POS_BITS_MAX; ++pb) {
|
pb <= LZMA_POS_BITS_MAX; ++pb) {
|
||||||
|
if (lc + lp > LZMA_LITERAL_BITS_MAX)
|
||||||
|
continue;
|
||||||
|
|
||||||
options.literal_context_bits = lc;
|
options.literal_context_bits = lc;
|
||||||
options.literal_pos_bits = lp;
|
options.literal_pos_bits = lp;
|
||||||
options.pos_bits = pb;
|
options.pos_bits = pb;
|
||||||
|
|
Loading…
Reference in New Issue