@@ -56,8 +56,9 @@ struct hmr_summary {
5656 hmr_total_size = accumulate (cbegin (hmrs), cend (hmrs), 0 ,
5757 [](const uint64_t t, const GenomicRegion &p) {
5858 return t + p.get_width (); });
59- hmr_mean_size =
60- static_cast <double >(hmr_total_size)/std::max (1ul , hmr_count);
59+ hmr_mean_size =
60+ static_cast <double >(hmr_total_size)/
61+ std::max (hmr_count, static_cast <uint64_t >(1 ));
6162 }
6263 // hmr_count is the number of identified HMRs.
6364 uint64_t hmr_count{};
@@ -452,7 +453,7 @@ main_hmr(int argc, const char **argv) {
452453 opt_parse.add_opt (" params-out" , ' p' , " write HMM parameters to this "
453454 " file (default: none)" , false , params_out_file);
454455 opt_parse.add_opt (" seed" , ' s' , " specify random seed" , false , rng_seed);
455- opt_parse.add_opt (" summary" , ' S' , " write summary output here" , false ,
456+ opt_parse.add_opt (" summary" , ' S' , " write summary output here" , false ,
456457 summary_file);
457458 opt_parse.set_show_defaults ();
458459 vector<string> leftover_args;
0 commit comments