summaryrefslogtreecommitdiffstats
path: root/decoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 11:40:25 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 11:40:25 +0000
commit90cd6e9b8b41a5418b87ab3f4832fdcc3cf2c3f5 (patch)
treea728c7e31e9a10563bdf13b21214f69e9d575f04 /decoder.h
parentAdding debian version 1.5~rc1-1. (diff)
downloadclzip-90cd6e9b8b41a5418b87ab3f4832fdcc3cf2c3f5.tar.xz
clzip-90cd6e9b8b41a5418b87ab3f4832fdcc3cf2c3f5.zip
Merging upstream version 1.5.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder.h b/decoder.h
index 280af82..af044d0 100644
--- a/decoder.h
+++ b/decoder.h
@@ -245,7 +245,7 @@ struct LZ_decoder
Bit_model bm_rep1[states];
Bit_model bm_rep2[states];
Bit_model bm_len[states][pos_states];
- Bit_model bm_dis_slot[max_dis_states][1<<dis_slot_bits];
+ Bit_model bm_dis_slot[len_states][1<<dis_slot_bits];
Bit_model bm_dis[modeled_distances-end_dis_model];
Bit_model bm_align[dis_align_size];
@@ -321,7 +321,7 @@ static inline bool LZd_init( struct LZ_decoder * const decoder,
Bm_array_init( decoder->bm_rep1, states );
Bm_array_init( decoder->bm_rep2, states );
Bm_array_init( decoder->bm_len[0], states * pos_states );
- Bm_array_init( decoder->bm_dis_slot[0], max_dis_states * (1 << dis_slot_bits) );
+ Bm_array_init( decoder->bm_dis_slot[0], len_states * (1 << dis_slot_bits) );
Bm_array_init( decoder->bm_dis, modeled_distances - end_dis_model );
Bm_array_init( decoder->bm_align, dis_align_size );