diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 02:38:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 02:38:59 +0000 |
commit | a368a5b6742b7854f04058a862695a66fc1bb610 (patch) | |
tree | 969f7e0b7a42802e16f096818a1df8f6df96087b /decoder.c | |
parent | Adding upstream version 1.14. (diff) | |
download | lzlib-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |