summaryrefslogtreecommitdiffstats
path: root/encoder.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:06:44 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:06:44 +0000
commit8115a3e25cf2f14818bf58a5285b113efd18e0bb (patch)
tree4e7b98c1a70c26289b3f7db2e460959da3e1eb90 /encoder.c
parentAdding upstream version 1.7~pre1. (diff)
downloadlzlib-8115a3e25cf2f14818bf58a5285b113efd18e0bb.tar.xz
lzlib-8115a3e25cf2f14818bf58a5285b113efd18e0bb.zip
Adding upstream version 1.7~rc1.upstream/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 4300801..6ac1f82 100644
--- a/encoder.c
+++ b/encoder.c
@@ -455,7 +455,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 )
{