Skip to content

Commit

Permalink
Merge pull request #19 from hartzell/gcc-6-fix
Browse files Browse the repository at this point in the history
Fix build with gcc > 6
  • Loading branch information
adarob authored Jan 2, 2019
2 parents 99487d2 + 216deb1 commit 4ae5793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/targets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ double Target::sample_likelihood(bool with_pseudo,

double ll = LOG_1;
double tot_mass = mass(with_pseudo);
double tot_eff_len = cached_effective_length(lib.bias_table);
double tot_eff_len = cached_effective_length(static_cast<bool>(lib.bias_table));
if (neighbors) {
foreach (const Target* neighbor, *neighbors) {
tot_mass = log_add(tot_mass, neighbor->mass(with_pseudo));
tot_eff_len = log_add(tot_eff_len,
neighbor->cached_effective_length(lib.bias_table));
neighbor->cached_effective_length(static_cast<bool>(lib.bias_table)));
}
}
ll += tot_mass - tot_eff_len;
Expand Down

0 comments on commit 4ae5793

Please sign in to comment.