summaryrefslogtreecommitdiffstats
path: root/lzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:35:56 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:35:56 +0000
commit68e0e5c64ebe512f6b2e48893763ab38879ed84e (patch)
treeeaf9638c29d1039bf9adcda8f9aa669291e208f3 /lzip.h
parentAdding debian version 1.1~pre1-1. (diff)
downloadplzip-68e0e5c64ebe512f6b2e48893763ab38879ed84e.tar.xz
plzip-68e0e5c64ebe512f6b2e48893763ab38879ed84e.zip
Merging upstream version 1.1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzip.h')
-rw-r--r--lzip.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lzip.h b/lzip.h
index 9dd8989..dfb28ee 100644
--- a/lzip.h
+++ b/lzip.h
@@ -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; }