summaryrefslogtreecommitdiffstats
path: root/encoder.cc
diff options
context:
space:
mode:
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 )
{