diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 13:49:41 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 13:49:41 +0000 |
commit | c794d14492b4ee65896b675054f22e899b57a627 (patch) | |
tree | 2b81b1a777641831de03b22d16af14c2b7830e8a /encoder.c | |
parent | Adding upstream version 1.5~rc1. (diff) | |
download | lzlib-c794d14492b4ee65896b675054f22e899b57a627.tar.xz lzlib-c794d14492b4ee65896b675054f22e899b57a627.zip |
Adding upstream version 1.5.upstream/1.5
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'encoder.c')
-rw-r--r-- | encoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -320,11 +320,11 @@ static void LZe_fill_distance_prices( struct LZ_encoder * const encoder ) const int price = price_symbol_reversed( encoder->bm_dis + base - dis_slot - 1, dis - base, direct_bits ); - for( dis_state = 0; dis_state < max_dis_states; ++dis_state ) + for( dis_state = 0; dis_state < dis_states; ++dis_state ) encoder->dis_prices[dis_state][dis] = price; } - for( dis_state = 0; dis_state < max_dis_states; ++dis_state ) + for( dis_state = 0; dis_state < dis_states; ++dis_state ) { int * const dsp = encoder->dis_slot_prices[dis_state]; int * const dp = encoder->dis_prices[dis_state]; @@ -361,7 +361,7 @@ static bool LZe_init( struct LZ_encoder * const encoder, Bm_array_init( encoder->bm_rep1, states ); Bm_array_init( encoder->bm_rep2, states ); Bm_array_init( encoder->bm_len[0], states * pos_states ); - Bm_array_init( encoder->bm_dis_slot[0], max_dis_states * (1 << dis_slot_bits) ); + Bm_array_init( encoder->bm_dis_slot[0], dis_states * (1 << dis_slot_bits) ); Bm_array_init( encoder->bm_dis, modeled_distances - end_dis_model ); Bm_array_init( encoder->bm_align, dis_align_size ); |