Skip to content

Commit

Permalink
fix variable type to avoid wrong lengths in the untangled PAF
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jul 9, 2024
1 parent f46b012 commit edbdfa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/untangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit edbdfa3

Please sign in to comment.