aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lzma/lzma_encoder_init.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-03-22 00:57:33 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-03-22 00:57:33 +0200
commit63b74d000eedaebb8485f623e56864ff5ab71064 (patch)
tree6cdee417634eabd515282882783eeda0322178e4 /src/liblzma/lzma/lzma_encoder_init.c
parentFix data corruption in LZMA encoder. Note that this bug was (diff)
downloadxz-63b74d000eedaebb8485f623e56864ff5ab71064.tar.xz
Demystified the "state" variable in LZMA code. Use the
word literal instead of char for better consistency. There are still some names with _char instead of _literal in lzma_optimum, these may be changed later. Renamed length coder variables. This commit doesn't change the program logic.
Diffstat (limited to '')
-rw-r--r--src/liblzma/lzma/lzma_encoder_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liblzma/lzma/lzma_encoder_init.c b/src/liblzma/lzma/lzma_encoder_init.c
index bbe3de7a..0e3fb769 100644
--- a/src/liblzma/lzma/lzma_encoder_init.c
+++ b/src/liblzma/lzma/lzma_encoder_init.c
@@ -174,10 +174,11 @@ lzma_lzma_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
bittree_reset(next->coder->pos_align_encoder, ALIGN_BITS);
// Length encoders
- length_encoder_reset(&next->coder->len_encoder, 1U << options->pos_bits,
+ length_encoder_reset(&next->coder->match_len_encoder,
+ 1U << options->pos_bits,
options->fast_bytes + 1 - MATCH_MIN_LEN);
- length_encoder_reset(&next->coder->rep_match_len_encoder,
+ length_encoder_reset(&next->coder->rep_len_encoder,
1U << options->pos_bits,
next->coder->fast_bytes + 1 - MATCH_MIN_LEN);