@@ -758,7 +758,7 @@ blockset_open_file(struct blockstore *blockStore,
758758 char * s = print_size (bs -> filesize );
759759 char * name = file_getname (bs -> filename );
760760 log_info (LGPFX " reading file %s -- %s -- %llu headers.\n" ,
761- name , s , bs -> filesize / sizeof (btc_block_header ));
761+ name , s , ( unsigned long long )( bs -> filesize / sizeof (btc_block_header ) ));
762762 free (name );
763763 free (s );
764764 }
@@ -802,7 +802,7 @@ blockset_open_file(struct blockstore *blockStore,
802802
803803 if (i == numHeaders - 1 ) {
804804 bitcui_set_status ("loading headers .. %llu%%" ,
805- ( offset + numBytes ) * 100 / bs -> filesize );
805+ ( unsigned long long )(( offset + numBytes ) * 100 / bs -> filesize ) );
806806 }
807807 if (i == numHeaders - 1 ||
808808 (numBytes < sizeof buf && i > numHeaders - 256 )) {
@@ -1037,7 +1037,7 @@ blockstore_get_hash_from_birth(const struct blockstore *bs,
10371037
10381038 hash256_calc (& e -> header , sizeof e -> header , hash );
10391039 s = print_time_local (birth , "%c" );
1040- log_info (LGPFX " birth %llu (%s) --> block %s.\n" , ts , s , uint256_to_str (hash ));
1040+ log_info (LGPFX " birth %llu (%s) --> block %s.\n" , ( unsigned long long ) ts , s , uint256_to_str (hash ));
10411041 free (s );
10421042 return ;
10431043 }
0 commit comments