Skip to content

Commit

Permalink
Stupid bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jltsiren committed Oct 25, 2019
1 parent 8554d00 commit ac51a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_cover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ struct LocalHaplotypes
{
bool success = false;
BestCoverage<LocalHaplotypes> best;
auto limit = (path.size() + 1 < k ? path.end() : path.begin() + (path.size() - 1));
auto limit = (path.size() + 1 < k ? path.end() : path.begin() + (k - 1));
std::vector<handle_t> context(path.begin(), limit);
gbwt::BidirectionalState state = graph.bd_find(context);
graph.follow_paths(state, true, [&](const gbwt::BidirectionalState& prev) -> bool
Expand Down

0 comments on commit ac51a72

Please sign in to comment.