Skip to content

Commit

Permalink
fixed compile error due to variable change
Browse files Browse the repository at this point in the history
  • Loading branch information
rakri committed Aug 16, 2023
1 parent 255b0bc commit 156a893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ void PQFlashIndex<T, LabelT>::generate_random_labels(std::vector<LabelT> &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)
{
Expand Down

0 comments on commit 156a893

Please sign in to comment.