Skip to content

Commit fa32338

Browse files
committed
currObj should be updated as the closest from all candidated.
1 parent 3c6a84f commit fa32338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hnswlib/hnswalg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ namespace hnswlib {
406406
top_candidates.pop();
407407
}
408408

409-
tableint next_closest_entry_point = selectedNeighbors[0];
409+
tableint next_closest_entry_point = selectedNeighbors.back();
410410

411411
{
412412
linklistsizeint *ll_cur;

0 commit comments

Comments
 (0)