Skip to content

Commit

Permalink
fix: safe check
Browse files Browse the repository at this point in the history
  • Loading branch information
leejoey0921 committed Aug 13, 2024
1 parent ef2ebe9 commit a64d60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefiltering/UngappedAlignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void UngappedAlignment::scoreDiagonalAndUpdateHits(const char * queryProfile,
unsigned int minSeqLen = std::min(targetMaxLen - minDistToDiagonal, queryLen);
for(size_t i = 0; i < DIAGONALBINSIZE; i++) {
tmpSeqs[i] = seqs[i].seq + minDistToDiagonal;
seqLength[i] = (seqs[i].seqLen == 0) ? 0 : std::min(seqs[i].seqLen - minDistToDiagonal, minSeqLen);
seqLength[i] = (seqs[i].seqLen > minDistToDiagonal) ? std::min(seqs[i].seqLen - minDistToDiagonal, minSeqLen) : 0;
}
unrolledDiagonalScoring<Sequence::PROFILE_AA_SIZE + 1>(queryProfile, seqLength,
tmpSeqs, score_arr);
Expand Down

0 comments on commit a64d60a

Please sign in to comment.