summaryrefslogtreecommitdiffstats
path: root/encoder.cc
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:08:13 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:08:13 +0000
commitc31a05b15eb10df5b9a3daa9d9b1d6a5bc7918c5 (patch)
tree4aab201a8b40daa717615f9f3a7b9407a25936e6 /encoder.cc
parentAdding debian version 1.17~rc1-1. (diff)
downloadlzip-c31a05b15eb10df5b9a3daa9d9b1d6a5bc7918c5.tar.xz
lzip-c31a05b15eb10df5b9a3daa9d9b1d6a5bc7918c5.zip
Merging upstream version 1.17~rc2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'encoder.cc')
-rw-r--r--encoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoder.cc b/encoder.cc
index 4833dd4..3e707f3 100644
--- a/encoder.cc
+++ b/encoder.cc
@@ -441,7 +441,7 @@ int LZ_encoder::sequence_optimizer( const int reps[num_rep_distances],
trials[++num_trials].price = infinite_price;
int i = 0;
- while( start_len > pairs[i].len ) ++i;
+ while( pairs[i].len < start_len ) ++i;
int dis = pairs[i].dis;
for( int len = start_len; ; ++len )
{