summaryrefslogtreecommitdiffstats
path: root/lzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 11:39:32 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 11:39:32 +0000
commitb54746257408488a8d0b5c86f1c0ab9a66047ed4 (patch)
tree43affae2aaf3a28479a3271daafa33267269dd21 /lzip.h
parentAdding upstream version 1.5~pre2. (diff)
downloadclzip-b54746257408488a8d0b5c86f1c0ab9a66047ed4.tar.xz
clzip-b54746257408488a8d0b5c86f1c0ab9a66047ed4.zip
Adding upstream version 1.5~rc1.upstream/1.5_rc1
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 6141d5d..6f11a75 100644
--- a/lzip.h
+++ b/lzip.h
@@ -202,15 +202,15 @@ static inline unsigned Fh_get_dictionary_size( const File_header data )
return sz;
}
-static inline bool Fh_set_dictionary_size( File_header data, const int sz )
+static inline bool Fh_set_dictionary_size( File_header data, 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;
int i;
for( i = 7; i >= 1; --i )
if( base_size - ( i * wedge ) >= sz )