We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4418ea + 431efa8 commit 898bf5dCopy full SHA for 898bf5d
hnswlib/hnswalg.h
@@ -792,7 +792,7 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
792
size_t dim = *((size_t *) dist_func_param_);
793
std::vector<data_t> data;
794
data_t* data_ptr = (data_t*) data_ptrv;
795
- for (int i = 0; i < dim; i++) {
+ for (size_t i = 0; i < dim; i++) {
796
data.push_back(*data_ptr);
797
data_ptr += 1;
798
}
0 commit comments