summaryrefslogtreecommitdiffstats
path: root/encoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-21 12:25:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-21 12:25:47 +0000
commite9d153cbb3f2d324182e34899404446537334a56 (patch)
tree16b3c05f736d638e89dadc1e630d2d2925ede229 /encoder.h
parentReleasing debian version 1.12-4. (diff)
downloadclzip-e9d153cbb3f2d324182e34899404446537334a56.tar.xz
clzip-e9d153cbb3f2d324182e34899404446537334a56.zip
Merging upstream version 1.13.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--encoder.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/encoder.h b/encoder.h
index 3d63d6a..13ee448 100644
--- a/encoder.h
+++ b/encoder.h
@@ -1,5 +1,5 @@
/* Clzip - LZMA lossless data compressor
- Copyright (C) 2010-2021 Antonio Diaz Diaz.
+ Copyright (C) 2010-2022 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -188,10 +188,9 @@ static inline int LZeb_price_rep( const struct LZ_encoder_base * const eb,
const int rep, const State state,
const int pos_state )
{
- int price;
if( rep == 0 ) return price0( eb->bm_rep0[state] ) +
price1( eb->bm_len[state][pos_state] );
- price = price1( eb->bm_rep0[state] );
+ int price = price1( eb->bm_rep0[state] );
if( rep == 1 )
price += price0( eb->bm_rep1[state] );
else