Skip to content

Commit 81b1aee

Browse files
Lucas Hosseinifacebook-github-bot
authored andcommitted
Fix warnings.
Reviewed By: wickedfoo Differential Revision: D24168429 fbshipit-source-id: 0f5fe5eee0f313224a4681dc84ba05169ceb482d
1 parent 8b05434 commit 81b1aee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

faiss/IndexBinaryIVF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ struct IVFBinaryScannerL2: BinaryInvertedListScanner {
333333
const uint8_t *codes,
334334
const idx_t *ids,
335335
int radius,
336-
RangeQueryResult &result) const
336+
RangeQueryResult &result) const override
337337
{
338338
size_t nup = 0;
339339
for (size_t j = 0; j < n; j++) {

faiss/IndexHNSW.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <cassert>
1515
#include <cstring>
1616
#include <cstdio>
17+
#include <cinttypes>
1718
#include <cmath>
1819
#include <omp.h>
1920

@@ -643,7 +644,7 @@ void IndexHNSW::link_singletons()
643644
}
644645
}
645646

646-
printf(" Found %d / %zd singletons (%d appear in a level above)\n",
647+
printf(" Found %d / %" PRId64 " singletons (%d appear in a level above)\n",
647648
n_sing, ntotal, n_sing_l1);
648649

649650
std::vector<float>recons(singletons.size() * d);

0 commit comments

Comments
 (0)