diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:27:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:27:04 +0000 |
commit | 6fd9f279ead32f28a4c8c71c6d6b6b86dd990cb3 (patch) | |
tree | 179874bf52354631bec6fa6bbf82d000ea9377a1 /encoder_base.h | |
parent | Adding upstream version 1.23. (diff) | |
download | lzip-6fd9f279ead32f28a4c8c71c6d6b6b86dd990cb3.tar.xz lzip-6fd9f279ead32f28a4c8c71c6d6b6b86dd990cb3.zip |
Adding upstream version 1.24~rc2.upstream/1.24_rc2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'encoder_base.h')
-rw-r--r-- | encoder_base.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 ) |