summaryrefslogtreecommitdiffstats
path: root/split.cc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--split.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/split.cc b/split.cc
index 8eafd82..fbf0676 100644
--- a/split.cc
+++ b/split.cc
@@ -129,9 +129,9 @@ int do_split_file( const std::string & input_filename, uint8_t * & base_buffer,
const File_index file_index( infd );
if( file_index.retval() != 0 ) pp( file_index.error().c_str() );
- const int max_members = file_index.retval() ? 999999 : file_index.members();
+ const long max_members = file_index.retval() ? 999999 : file_index.members();
int max_digits = 1;
- for( int i = max_members; i >= 10; i /= 10 ) ++max_digits;
+ for( long i = max_members; i >= 10; i /= 10 ) ++max_digits;
std::string output_filename;
first_filename( input_filename, default_output_filename, output_filename,