Skip to content

Commit

Permalink
Ensure index doesn't get cast to <64bit int.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaklin committed Aug 17, 2024
1 parent dba6b84 commit 97a2d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Likelihood.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class LL_WOR21 : public Likelihood<T> {
for (size_t i = 0; i < num_ecs; ++i) {
for (size_t j = 0; j < n_targets; ++j) {
if (alignment(i, j)) {
local_counts[omp_get_thread_num()].inc(alignment.get_groups()[j]*num_ecs + i);
local_counts[omp_get_thread_num()].inc((size_t)((size_t)alignment.get_groups()[j]*num_ecs) + i);
}
}
}
Expand Down

0 comments on commit 97a2d14

Please sign in to comment.