Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
ChunjiangZhu committed Oct 30, 2019
1 parent 1100302 commit a861763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion similarity_search/src/method/hnsw.cc
Expand Up @@ -1349,7 +1349,7 @@ namespace similarity {
}
}

SortArrBI<dist_t, HnswNode *> sortedArr(max<size_t>(ef_, 1000); // max<size_t>(ef_, query->GetK())
SortArrBI<dist_t, HnswNode *> sortedArr(max<size_t>(ef_, 1000)); // max<size_t>(ef_, query->GetK())
sortedArr.push_unsorted_grow(curdist, curNode);

int_fast32_t currElem = 0;
Expand Down

0 comments on commit a861763

Please sign in to comment.