summaryrefslogtreecommitdiffstats
path: root/fast_encoder.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-13 10:15:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-13 10:15:31 +0000
commit97bfec5482ccb967b680e5e4c5039dde9d7c2515 (patch)
tree333c506a25950748aeab8c68dd63a9ac37ea022c /fast_encoder.cc
parentReleasing debian version 1.20-4. (diff)
downloadlzip-97bfec5482ccb967b680e5e4c5039dde9d7c2515.tar.xz
lzip-97bfec5482ccb967b680e5e4c5039dde9d7c2515.zip
Merging upstream version 1.21.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fast_encoder.cc')
-rw-r--r--fast_encoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/fast_encoder.cc b/fast_encoder.cc
index 3c5d32b..8fc0d3a 100644
--- a/fast_encoder.cc
+++ b/fast_encoder.cc
@@ -1,5 +1,5 @@
/* Lzip - LZMA lossless data compressor
- Copyright (C) 2008-2018 Antonio Diaz Diaz.
+ Copyright (C) 2008-2019 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -73,13 +73,13 @@ int FLZ_encoder::longest_match_len( int * const distance )
bool FLZ_encoder::encode_member( const unsigned long long member_size )
{
const unsigned long long member_size_limit =
- member_size - File_trailer::size - max_marker_size;
+ member_size - Lzip_trailer::size - max_marker_size;
int rep = 0;
int reps[num_rep_distances];
State state;
for( int i = 0; i < num_rep_distances; ++i ) reps[i] = 0;
- if( data_position() != 0 || renc.member_position() != File_header::size )
+ if( data_position() != 0 || renc.member_position() != Lzip_header::size )
return false; // can be called only once
if( !data_finished() ) // encode first byte