Skip to content

Commit 8ba5491

Browse files
fix IVFPQFastScan::RangeSearch() on ARM (#1116)
Signed-off-by: Alexandr Guzhva <alexanderguzhva@gmail.com>
1 parent ef9e45a commit 8ba5491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

thirdparty/faiss/faiss/impl/simd_result_handlers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ struct RangeHandler : ResultHandlerCompare<C, with_id_map> {
792792
normalizers = norms;
793793
for (size_t q = 0; q < nq; ++q) {
794794
thresholds[q] =
795-
normalizers[2 * q] * (radius - normalizers[2 * q + 1]);
795+
int(normalizers[2 * q] * (radius - normalizers[2 * q + 1]));
796796
}
797797
}
798798

0 commit comments

Comments
 (0)