Fix format specifiers for size_t/idx_t. (#1338)

Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1338

Test Plan: Imported from OSS

Reviewed By: mdouze

Differential Revision: D23234964

Pulled By: beauby

fbshipit-source-id: 2222d90d8ca3f9a6ac3a9e624e7ec87072da3a25
This commit is contained in:
Lucas Hosseini
2020-08-20 10:45:27 -07:00
committed by Facebook GitHub Bot
parent 8438062b88
commit a97ebeeabd
29 changed files with 99 additions and 82 deletions
+2 -2
View File
@@ -192,7 +192,7 @@ int test_sliding_invlists (const char *index_key) {
// will be deleted by the index
index_ivf->replace_invlists (ci, true);
printf (" nb invlists = %ld\n", ils.size());
printf (" nb invlists = %zd\n", ils.size());
auto new_res = search_index (index.get(), xq.data());
@@ -208,7 +208,7 @@ int test_sliding_invlists (const char *index_key) {
if (ref_res[j] != new_res[j])
ndiff++;
}
printf(" nb differences: %ld / %ld\n",
printf(" nb differences: %zd / %zd\n",
ndiff, ref_res.size());
EXPECT_EQ (ref_res, new_res);
}