mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
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:
committed by
Facebook GitHub Bot
parent
8438062b88
commit
a97ebeeabd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user