Skip to content

Commit

Permalink
Merge pull request #509 from jlmelville/patch-1
Browse files Browse the repository at this point in the history
Avoid sign mismatch in loop
  • Loading branch information
yurymalkov authored Oct 1, 2023
2 parents c4418ea + 431efa8 commit 898bf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hnswlib/hnswalg.h
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
size_t dim = *((size_t *) dist_func_param_);
std::vector<data_t> data;
data_t* data_ptr = (data_t*) data_ptrv;
for (int i = 0; i < dim; i++) {
for (size_t i = 0; i < dim; i++) {
data.push_back(*data_ptr);
data_ptr += 1;
}
Expand Down

0 comments on commit 898bf5d

Please sign in to comment.