Skip to content

Commit c2bc2ad

Browse files
committed
and => &&
1 parent a29c3dd commit c2bc2ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hnswlib/hnswalg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ namespace hnswlib {
182182

183183
while (!candidateSet.empty()) {
184184
std::pair<dist_t, tableint> curr_el_pair = candidateSet.top();
185-
if ((-curr_el_pair.first) > lowerBound and top_candidates.size() == ef_construction_) {
185+
if ((-curr_el_pair.first) > lowerBound && top_candidates.size() == ef_construction_) {
186186
break;
187187
}
188188
candidateSet.pop();
@@ -271,7 +271,7 @@ namespace hnswlib {
271271

272272
std::pair<dist_t, tableint> current_node_pair = candidate_set.top();
273273

274-
if ((-current_node_pair.first) > lowerBound and top_candidates.size() == ef) {
274+
if ((-current_node_pair.first) > lowerBound && top_candidates.size() == ef) {
275275
break;
276276
}
277277
candidate_set.pop();

0 commit comments

Comments
 (0)