diff options
Diffstat (limited to 'decoder.c')
-rw-r--r-- | decoder.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -45,7 +45,7 @@ void Pp_show_msg( struct Pretty_print * const pp, const char * const msg ) for( i = 0; i < len; ++i ) fprintf( stderr, " " ); if( !msg ) fflush( stderr ); } - if( msg ) fprintf( stderr, "%s.\n", msg ); + if( msg ) fprintf( stderr, "%s\n", msg ); } } @@ -144,7 +144,7 @@ static bool LZd_verify_trailer( struct LZ_decoder * const d, if( d->rdec->code != 0 ) { error = true; - Pp_show_msg( pp, "Range decoder final code is not zero" ); + Pp_show_msg( pp, "Range decoder final code is not zero." ); } trailer_crc = Ft_get_data_crc( trailer ); if( trailer_crc != LZd_crc( d ) ) @@ -214,14 +214,14 @@ int LZd_decode_member( struct LZ_decoder * const d, { state -= ( state < 4 ) ? state : 3; LZd_put_byte( d, Rd_decode_tree( rdec, - d->bm_literal[get_lit_state(prev_byte)], 8 ) ); + d->bm_literal[get_lit_state(prev_byte)], 8 ) ); } else { state -= ( state < 10 ) ? 3 : 6; LZd_put_byte( d, Rd_decode_matched( rdec, - d->bm_literal[get_lit_state(prev_byte)], - LZd_get_byte( d, rep0 ) ) ); + d->bm_literal[get_lit_state(prev_byte)], + LZd_get_byte( d, rep0 ) ) ); } } else |