From edbdfa3afe4643fc71e7012d3a3c520af0cb017e Mon Sep 17 00:00:00 2001 From: AndreaGuarracino Date: Tue, 9 Jul 2024 14:01:02 +0200 Subject: [PATCH] fix variable type to avoid wrong lengths in the untangled PAF --- src/algorithms/untangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/untangle.cpp b/src/algorithms/untangle.cpp index c7742f96..497b9424 100644 --- a/src/algorithms/untangle.cpp +++ b/src/algorithms/untangle.cpp @@ -937,7 +937,7 @@ void untangle( #pragma omp parallel for schedule(dynamic, 1) num_threads(num_threads) for (uint64_t i = 0; i < paths.size(); ++i) { auto& path = paths[i]; - const uint16_t path_len = get_path_length(graph, paths[i]); + const uint64_t path_len = get_path_length(graph, paths[i]); // You can't write on such a data structure in parallel #pragma omp critical (path_to_len)