From a9dff770f27dfbcef3bf768146324b03c810bfb8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 23 Jan 2024 06:27:08 +0100 Subject: Merging upstream version 1.24~rc2. Signed-off-by: Daniel Baumann --- encoder_base.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'encoder_base.h') diff --git a/encoder_base.h b/encoder_base.h index b3dd9e6..ef48e0c 100644 --- a/encoder_base.h +++ b/encoder_base.h @@ -1,5 +1,5 @@ /* Lzip - LZMA lossless data compressor - Copyright (C) 2008-2022 Antonio Diaz Diaz. + Copyright (C) 2008-2024 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 @@ -86,7 +86,7 @@ inline int price1( const Bit_model bm ) { return prob_prices[bit_model_total - bm.probability]; } inline int price_bit( const Bit_model bm, const bool bit ) - { return ( bit ? price1( bm ) : price0( bm ) ); } + { return bit ? price1( bm ) : price0( bm ); } inline int price_symbol3( const Bit_model bm[], int symbol ) @@ -260,8 +260,7 @@ public: ff_count = 0; cache = 0; header.dictionary_size( dictionary_size ); - for( int i = 0; i < Lzip_header::size; ++i ) - put_byte( header.data[i] ); + for( int i = 0; i < header.size; ++i ) put_byte( header.data[i] ); } Range_encoder( const unsigned dictionary_size, const int ofd ) -- cgit v1.2.3