summaryrefslogtreecommitdiffstats
path: root/file_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:45:50 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:45:50 +0000
commit0763626b1d5a396a8d78985c9a445763686f92f8 (patch)
tree128aaf42cc9d59adf31b97b65788a0b56acb8da3 /file_index.h
parentAdding debian version 1.16~pre1-1. (diff)
downloadlziprecover-0763626b1d5a396a8d78985c9a445763686f92f8.tar.xz
lziprecover-0763626b1d5a396a8d78985c9a445763686f92f8.zip
Merging upstream version 1.16~pre2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'file_index.h')
-rw-r--r--file_index.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/file_index.h b/file_index.h
index 8acb60f..7fee1e6 100644
--- a/file_index.h
+++ b/file_index.h
@@ -76,7 +76,7 @@ public:
explicit File_index( const int infd );
File_index( const std::vector< int > & infd_vector, const long long fsize );
- int members() const { return member_vector.size(); }
+ long members() const { return member_vector.size(); }
const std::string & error() const { return error_; }
int retval() const { return retval_; }
@@ -84,7 +84,7 @@ public:
{
if( retval_ || fi.retval_ || isize != fi.isize ||
member_vector.size() != fi.member_vector.size() ) return false;
- for( unsigned i = 0; i < member_vector.size(); ++i )
+ for( unsigned long i = 0; i < member_vector.size(); ++i )
if( member_vector[i] != fi.member_vector[i] ) return false;
return true;
}
@@ -102,8 +102,8 @@ public:
long long file_size() const
{ if( isize >= 0 ) return isize; else return 0; }
- const Block & dblock( const int i ) const
+ const Block & dblock( const long i ) const
{ return member_vector[i].dblock; }
- const Block & mblock( const int i ) const
+ const Block & mblock( const long i ) const
{ return member_vector[i].mblock; }
};