diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:35:47 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:35:47 +0000 |
commit | ff21d2a0229e96359d0e2554b5687a81ce2c9046 (patch) | |
tree | 9a8c3616cb7210aad1940bcc4ec2890c6baae53e /lzip.h | |
parent | Adding upstream version 1.1~pre1. (diff) | |
download | plzip-ff21d2a0229e96359d0e2554b5687a81ce2c9046.tar.xz plzip-ff21d2a0229e96359d0e2554b5687a81ce2c9046.zip |
Adding upstream version 1.1.upstream/1.1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzip.h')
-rw-r--r-- | lzip.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -89,15 +89,15 @@ struct File_header return sz; } - bool dictionary_size( const int sz ) + bool dictionary_size( const unsigned sz ) { if( sz >= min_dictionary_size && sz <= max_dictionary_size ) { data[5] = real_bits( sz - 1 ); if( sz > min_dictionary_size ) { - const int base_size = 1 << data[5]; - const int wedge = base_size / 16; + const unsigned base_size = 1 << data[5]; + const unsigned wedge = base_size / 16; for( int i = 7; i >= 1; --i ) if( base_size - ( i * wedge ) >= sz ) { data[5] |= ( i << 5 ); break; } |