Skip to content

Commit

Permalink
Fixed a compilation warning in the bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jun 13, 2024
1 parent 7cd3b3f commit a81b74b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/knncolle_hnsw/knncolle_hnsw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ class HnswSearcher : public knncolle::Searcher<Index_, Float_> {
}

bool self_found = false;
hnswlib::labeltype icopy = i;
while (!my_queue.empty()) {
const auto& top = my_queue.top();
if (!self_found && top.second == i) {
if (!self_found && top.second == icopy) {
self_found = true;
} else {
if (output_indices) {
Expand Down

0 comments on commit a81b74b

Please sign in to comment.