Skip to content

Commit

Permalink
Merge pull request #70 from dschrempf/pomo-fix-int-overflow-error
Browse files Browse the repository at this point in the history
fix integer overflow error for pomo
  • Loading branch information
iqtree authored May 1, 2024
2 parents 33b2ab6 + 4e7e995 commit a4e80ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alignment/alignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2560,9 +2560,9 @@ int Alignment::readCountsFormat(char* filename, char* sequence_type) {

// Variables to calculate mean number of samples per population.
// If N is way above the average number of samples, PoMo has been
// ovserved to be unstable and a big warning is printed.
int n_samples_sum = 0;
int n_sites_sum = 0;
// observed to be unstable and a big warning is printed.
unsigned long long n_samples_sum = 0;
unsigned long long n_sites_sum = 0;
// Average number of samples.
double n_samples_bar = 0;

Expand Down

0 comments on commit a4e80ef

Please sign in to comment.