Skip to content

Commit

Permalink
Fix ASAN error
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhesselberth committed Jan 20, 2025
1 parent 76ed0c3 commit 743fa0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ writable::data_frame random_impl(data_frame genome, int length, int n, int seed
auto generator = ENGINE(seed) ;

// calculate weights for chrom distribution
double mass = std::accumulate(sizes.begin(), sizes.end(), 0); ;
double mass = std::accumulate(sizes.begin(), sizes.end(), 0.0); ;

std::vector<double> weights(nchrom) ;
for (int i = 0; i < nchrom; ++i) {
Expand Down

0 comments on commit 743fa0b

Please sign in to comment.