From 156a89392c053b4a323cefc9e2e6eb81a73c2520 Mon Sep 17 00:00:00 2001 From: rakri Date: Wed, 16 Aug 2023 03:16:20 +0000 Subject: [PATCH] fixed compile error due to variable change --- src/pq_flash_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index 1ca8ae64e..88abf2020 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -547,7 +547,7 @@ void PQFlashIndex::generate_random_labels(std::vector &labels labels.clear(); labels.resize(num_labels); - uint64_t num_total_labels = _pts_to_label_offsets[num_points - 1] + _pts_to_label_counts[num_points - 1]; + uint64_t num_total_labels = _pts_to_label_offsets[_num_points - 1] + _pts_to_label_counts[_num_points - 1]; std::mt19937 gen(rd()); if (num_total_labels == 0) {