aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-06-20 17:16:32 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-06-20 17:16:32 +0300
commit57b9a145a527f0716822615e5ed536d33aebd3fc (patch)
treeff8c3033ff0bcde9e5fb8e540803576ecd74f322
parentRemove some redundant code from LZMA encoder. (diff)
downloadxz-57b9a145a527f0716822615e5ed536d33aebd3fc.tar.xz
Fix test_filter_flags to match the new restriction of lc+lp.
-rw-r--r--tests/test_filter_flags.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 8df6da6c..dde01381 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -258,6 +258,9 @@ test_lzma(void)
lp <= LZMA_LITERAL_POS_BITS_MAX; ++lp) {
for (uint32_t pb = LZMA_POS_BITS_MIN;
pb <= LZMA_POS_BITS_MAX; ++pb) {
+ if (lc + lp > LZMA_LITERAL_BITS_MAX)
+ continue;
+
options.literal_context_bits = lc;
options.literal_pos_bits = lp;
options.pos_bits = pb;