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
1 changed files with 3 additions and 0 deletions

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;