Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/src/ssw/ssw_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ int CalculateNumberMismatch(
int8_t const *query,
const int& query_len) {

ref += al->ref_begin;
query += al->query_begin;
ref += (al->ref_begin > 0 ? al->ref_begin : 0);
query += (al->query_begin > 0 ? al->query_begin : 0);
int mismatch_length = 0;

std::vector<uint32_t> new_cigar;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ UniquePathLengthLowerBound(const Graph &g, size_t min_length) {
template<class Graph>
EdgePredicate<Graph>
UniqueIncomingPathLengthLowerBound(const Graph &g, size_t min_length) {
return [&] (typename Graph::EdgeId e) {
return [&g, min_length] (typename Graph::EdgeId e) {
typename Graph::VertexId v = g.EdgeStart(e);
return g.CheckUniqueIncomingEdge(v) &&
UniquePathLengthLowerBound(g, min_length)(g.GetUniqueIncomingEdge(v));
Expand Down
Loading