summaryrefslogtreecommitdiffstats
path: root/decoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:06:05 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:06:05 +0000
commita3c37bf807e8bcf3682987c2ab984053e7940a5c (patch)
treee739a4f5a6645fa64c4e66954a485bdf98d3bb61 /decoder.h
parentAdding upstream version 1.5~rc2. (diff)
downloadlunzip-a3c37bf807e8bcf3682987c2ab984053e7940a5c.tar.xz
lunzip-a3c37bf807e8bcf3682987c2ab984053e7940a5c.zip
Adding upstream version 1.5.upstream/1.5
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/decoder.h b/decoder.h
index 3b97014..d6162d8 100644
--- a/decoder.h
+++ b/decoder.h
@@ -158,7 +158,7 @@ static inline int Rd_decode_tree6( struct Range_decoder * const rdec,
symbol = ( symbol << 1 ) | Rd_decode_bit( rdec, &bm[symbol] );
symbol = ( symbol << 1 ) | Rd_decode_bit( rdec, &bm[symbol] );
symbol = ( symbol << 1 ) | Rd_decode_bit( rdec, &bm[symbol] );
- return symbol - (1 << 6);
+ return symbol & 0x3F;
}
static inline int Rd_decode_tree_reversed( struct Range_decoder * const rdec,
@@ -256,9 +256,6 @@ struct LZ_decoder
void LZd_flush_data( struct LZ_decoder * const d );
-bool LZd_verify_trailer( struct LZ_decoder * const d,
- struct Pretty_print * const pp );
-
int seek_read( const int fd, uint8_t * const buf, const int size,
const int offset );