1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Allow nice_len 2 and 3 even if match finder requires 3 or 4.

Now that liblzma accepts these, we avoid the extra check and
there's one message less for translators too.
This commit is contained in:
Lasse Collin 2022-11-24 23:24:59 +02:00
parent 3be88ae071
commit 5cd9f0df78

View file

@ -354,10 +354,5 @@ options_lzma(const char *str)
if (options->lc + options->lp > LZMA_LCLP_MAX) if (options->lc + options->lp > LZMA_LCLP_MAX)
message_fatal(_("The sum of lc and lp must not exceed 4")); message_fatal(_("The sum of lc and lp must not exceed 4"));
const uint32_t nice_len_min = options->mf & 0x0F;
if (options->nice_len < nice_len_min)
message_fatal(_("The selected match finder requires at "
"least nice=%" PRIu32), nice_len_min);
return options; return options;
} }