Skip to content

Commit 734f444

Browse files
committed
fix
1 parent a7a5f6e commit 734f444

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

faiss/IndexHNSW.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ void IndexHNSW::search_level_0(
505505
}
506506
}
507507
#pragma omp critical
508-
{ hnsw_stats.combine(search_stats); }
508+
{
509+
hnsw_stats.combine(search_stats);
510+
}
509511
}
510512
omp_rethrow_if_exception(ex);
511513
if (is_similarity_metric(this->metric_type)) {
@@ -705,7 +707,10 @@ IndexHNSWFlat::IndexHNSWFlat(int d_in, int M, MetricType metric)
705707
**************************************************************/
706708

707709
IndexHNSWFlatPanorama::IndexHNSWFlatPanorama()
708-
: IndexHNSWFlat(), cum_sums(), pano(1, 1, 1), num_panorama_levels(0) {}
710+
: IndexHNSWFlat(),
711+
cum_sums(),
712+
pano(sizeof(float), 1, 1),
713+
num_panorama_levels(0) {}
709714

710715
IndexHNSWFlatPanorama::IndexHNSWFlatPanorama(
711716
int d_in,

0 commit comments

Comments
 (0)