1
0
Fork 0
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:
Lasse Collin 2008-06-20 17:16:32 +03:00
parent eaafc4367c
commit 57b9a145a5

View file

@ -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;