From 97a2d149759f5255d6fccf94120a6be9c68d3c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20M=C3=A4klin?= Date: Sat, 17 Aug 2024 09:28:20 +0300 Subject: [PATCH] Ensure index doesn't get cast to <64bit int. --- include/Likelihood.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Likelihood.hpp b/include/Likelihood.hpp index d182a89..15c4ed6 100644 --- a/include/Likelihood.hpp +++ b/include/Likelihood.hpp @@ -124,7 +124,7 @@ class LL_WOR21 : public Likelihood { 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); } } }