diff --git a/faiss/utils/partitioning.h b/faiss/utils/partitioning.h index cd63592401..90157d2312 100644 --- a/faiss/utils/partitioning.h +++ b/faiss/utils/partitioning.h @@ -71,5 +71,4 @@ struct PartitionStats { // global var that collects them all FAISS_API extern PartitionStats partition_stats; - } // namespace faiss diff --git a/faiss/utils/utils.cpp b/faiss/utils/utils.cpp index 54a3700672..3bc362c9c2 100644 --- a/faiss/utils/utils.cpp +++ b/faiss/utils/utils.cpp @@ -558,8 +558,7 @@ void CombinerRangeKNN::compute_sizes(int64_t* L_res) { int64_t n_in; if (!mask || !mask[i]) { const float* row = D + i * k; - n_in = keep_max ? count_gt(k, row, r2) - : count_lt(k, row, r2); + n_in = keep_max ? count_gt(k, row, r2) : count_lt(k, row, r2); } else { n_in = lim_remain[j + 1] - lim_remain[j]; j++;