summaryrefslogtreecommitdiffstats
path: root/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.h')
-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 );