Skip to content

Commit

Permalink
fixed lots of heavily impolite memory accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Sep 14, 2021
1 parent e333228 commit 15b738c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/subcommand/extract_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,13 @@ namespace odgi {
algorithms::for_handle_in_path_range(
graph, path_handle, path_range.begin.offset, path_range.end.offset,
[&](const handle_t& handle) {
keep_bv.set(graph.get_id(handle));
keep_bv.set(graph.get_id(handle) - shift);
});
}
for (auto id : keep_bv) {
const handle_t h = graph.get_handle(id);
for (auto id_shifted : keep_bv) {
const handle_t h = graph.get_handle(id_shifted + shift);
subgraph.create_handle(graph.get_sequence(h),
id);
id_shifted + shift);
}
}

Expand Down

0 comments on commit 15b738c

Please sign in to comment.