mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Fix test_filter_flags to match the new restriction of lc+lp.
This commit is contained in:
parent
eaafc4367c
commit
57b9a145a5
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue