From 0780a281dca4bb49cbf2033aea1f4f42c7aa7b90 Mon Sep 17 00:00:00 2001 From: Alexandr Guzhva Date: Wed, 27 Sep 2023 07:25:11 -0700 Subject: [PATCH] Fix a couple of type mismatches (#3059) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3059 Reviewed By: mdouze Differential Revision: D49617392 Pulled By: mlomeli1 fbshipit-source-id: 6a81fcae7be138a734edcb3996c369256de727ba --- faiss/IndexIVFFlat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faiss/IndexIVFFlat.cpp b/faiss/IndexIVFFlat.cpp index a6f090c2c9..07f410440d 100644 --- a/faiss/IndexIVFFlat.cpp +++ b/faiss/IndexIVFFlat.cpp @@ -46,8 +46,8 @@ IndexIVFFlat::IndexIVFFlat() { void IndexIVFFlat::add_core( idx_t n, const float* x, - const int64_t* xids, - const int64_t* coarse_idx) { + const idx_t* xids, + const idx_t* coarse_idx) { FAISS_THROW_IF_NOT(is_trained); FAISS_THROW_IF_NOT(coarse_idx); FAISS_THROW_IF_NOT(!by_residual);