summaryrefslogtreecommitdiffstats
path: root/decoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 11:29:00 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-06 11:29:00 +0000
commitee4373742b5e806cf3fb080808a2061c5644a14d (patch)
tree65e45e9ae8579bb28d83a8c881238fb614b2ad53 /decoder.h
parentAdding debian version 1.0~rc3-1. (diff)
downloadclzip-ee4373742b5e806cf3fb080808a2061c5644a14d.tar.xz
clzip-ee4373742b5e806cf3fb080808a2061c5644a14d.zip
Merging upstream version 1.0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--decoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder.h b/decoder.h
index 1bb773c..a4a111f 100644
--- a/decoder.h
+++ b/decoder.h
@@ -43,7 +43,7 @@ static inline void Rd_init( struct Range_decoder * const rdec, const int infd )
rdec->pos = 0;
rdec->stream_pos = 0;
rdec->code = 0;
- rdec->range = 0xFFFFFFFF;
+ rdec->range = 0xFFFFFFFFU;
rdec->infd_ = infd;
rdec->at_stream_end = false;
}
@@ -242,7 +242,7 @@ static inline uint8_t Lid_decode_matched( struct Literal_decoder * const literal
struct LZ_decoder
{
long long partial_data_pos;
- int format_version;
+ int member_version;
int dictionary_size;
int buffer_size;
uint8_t * buffer;
@@ -313,7 +313,7 @@ static inline void LZd_init( struct LZ_decoder * const decoder,
struct Range_decoder * const rdec, const int outfd )
{
decoder->partial_data_pos = 0;
- decoder->format_version = Fh_version( header );
+ decoder->member_version = Fh_version( header );
decoder->dictionary_size = Fh_get_dictionary_size( header );
decoder->buffer_size = max( 65536, decoder->dictionary_size );
decoder->buffer = (uint8_t *)malloc( decoder->buffer_size );