Skip to content

Commit

Permalink
Fix issue #916
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Dec 6, 2024
1 parent ddc19be commit e3b16fa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/prefiltering/QueryMatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,14 @@ size_t QueryMatcher::match(Sequence *seq, float *compositionBias) {
outer:
indexPointer[indexTo + 1] = databaseHits + numMatches;
// fill the output
size_t hitCount = findDuplicates(indexPointer, foundDiagonals + overflowHitCount,
size_t hitCount = 0;
if(numMatches > 0){
hitCount = findDuplicates(indexPointer, foundDiagonals + overflowHitCount,
foundDiagonalsSize - overflowHitCount, indexStart, indexTo, (diagonalScoring == false));
if (overflowHitCount != 0) {
// overflow occurred
hitCount = mergeElements(foundDiagonals, overflowHitCount + hitCount);
if (overflowHitCount != 0) {
// overflow occurred
hitCount = mergeElements(foundDiagonals, overflowHitCount + hitCount);
}
}
stats->doubleMatches = 0;
if (diagonalScoring == false) {
Expand Down

0 comments on commit e3b16fa

Please sign in to comment.