From 87cba41e30f31fb96d606fa5079d598ab7ebe4f7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 21 Feb 2022 17:16:10 +0100 Subject: Adding upstream version 1.13. Signed-off-by: Daniel Baumann --- encoder.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'encoder.h') diff --git a/encoder.h b/encoder.h index 7a7ecaf..f17bb99 100644 --- a/encoder.h +++ b/encoder.h @@ -1,5 +1,5 @@ /* Lzlib - Compression library for the lzip format - Copyright (C) 2009-2021 Antonio Diaz Diaz. + Copyright (C) 2009-2022 Antonio Diaz Diaz. This library is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided @@ -194,10 +194,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 -- cgit v1.2.3