summaryrefslogtreecommitdiffstats
path: root/decoder.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 02:38:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 02:38:59 +0000
commita368a5b6742b7854f04058a862695a66fc1bb610 (patch)
tree969f7e0b7a42802e16f096818a1df8f6df96087b /decoder.c
parentAdding upstream version 1.14. (diff)
downloadlzlib-a368a5b6742b7854f04058a862695a66fc1bb610.tar.xz
lzlib-a368a5b6742b7854f04058a862695a66fc1bb610.zip
Adding upstream version 1.15~pre1.upstream/1.15_pre1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/decoder.c b/decoder.c
index 6544ec6..d1fbe54 100644
--- a/decoder.c
+++ b/decoder.c
@@ -40,7 +40,7 @@ static int LZd_decode_member( struct LZ_decoder * const d )
{
struct Range_decoder * const rdec = d->rdec;
State * const state = &d->state;
- /* unsigned old_mpos = rdec->member_position; */
+ unsigned old_mpos = rdec->member_position;
if( d->member_finished ) return 0;
if( !Rd_try_reload( rdec ) )
@@ -49,9 +49,9 @@ static int LZd_decode_member( struct LZ_decoder * const d )
while( !Rd_finished( rdec ) )
{
- /* const unsigned mpos = rdec->member_position;
+ const unsigned mpos = rdec->member_position;
if( mpos - old_mpos > rd_min_available_bytes ) return 5;
- old_mpos = mpos; */
+ old_mpos = mpos;
if( !Rd_enough_available_bytes( rdec ) ) /* check unexpected EOF */
{ if( !rdec->at_stream_end ) return 0;
if( Cb_empty( &rdec->cb ) ) break; } /* decode until EOF */
@@ -116,9 +116,9 @@ static int LZd_decode_member( struct LZ_decoder * const d )
if( distance == 0xFFFFFFFFU ) /* marker found */
{
Rd_normalize( rdec );
- /* const unsigned mpos = rdec->member_position;
+ const unsigned mpos = rdec->member_position;
if( mpos - old_mpos > rd_min_available_bytes ) return 5;
- old_mpos = mpos; */
+ old_mpos = mpos;
if( len == min_match_len ) /* End Of Stream marker */
{
d->check_trailer_pending = true;