From c5e189bd5aa90a9a39f2114e3d2a7903cee698ca Mon Sep 17 00:00:00 2001 From: ozanarmagan Date: Mon, 5 Feb 2024 14:22:20 +0300 Subject: [PATCH] Fix initial value for initial batch loop --- tests/cpp/replaceSameLabel_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp/replaceSameLabel_test.cpp b/tests/cpp/replaceSameLabel_test.cpp index 646b1b53..9e675f29 100644 --- a/tests/cpp/replaceSameLabel_test.cpp +++ b/tests/cpp/replaceSameLabel_test.cpp @@ -35,7 +35,7 @@ int main() { std::vector labels; std::cout << "Adding initial batch" << std::endl; - for(int row; row < max_elements; row++) { + for(int row = 0; row < max_elements; row++) { int label = distrib_int(rng); labels.push_back(label); alg_hnsw->addPoint((void*)(initial_batch + d * row), label, true);