summaryrefslogtreecommitdiffstats
path: root/encoder.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 12:52:43 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 12:52:43 +0000
commit73f5ce5a1a7ef15a0e889bf2416e401db59f8c28 (patch)
tree7bf509a1fbb746c7c77b3a7dce30d192729be136 /encoder.c
parentAdding debian version 1.7~pre1-1. (diff)
downloadclzip-73f5ce5a1a7ef15a0e889bf2416e401db59f8c28.tar.xz
clzip-73f5ce5a1a7ef15a0e889bf2416e401db59f8c28.zip
Merging upstream version 1.7~rc1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'encoder.c')
-rw-r--r--encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoder.c b/encoder.c
index 9d5fd5c..1a027f5 100644
--- a/encoder.c
+++ b/encoder.c
@@ -456,7 +456,7 @@ static int LZe_sequence_optimizer( struct LZ_encoder * const e,
e->trials[++num_trials].price = infinite_price;
i = 0;
- while( start_len > e->pairs[i].len ) ++i;
+ while( e->pairs[i].len < start_len ) ++i;
dis = e->pairs[i].dis;
for( len = start_len; ; ++len )
{