Skip to content

Commit a3296f4

Browse files
Alexandr Guzhvafacebook-github-bot
Alexandr Guzhva
authored andcommitted
Use uint8_t instead of uint32_t for faiss::VisitedTable.visno (#2873)
Summary: Pull Request resolved: #2873 Reviewed By: mdouze Differential Revision: D46125491 fbshipit-source-id: 9c48bb55e54eb361438521494093a3f9ab823857
1 parent fd09e51 commit a3296f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/impl/AuxIndexStructures.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ struct FAISS_API InterruptCallback {
165165
/// set implementation optimized for fast access.
166166
struct VisitedTable {
167167
std::vector<uint8_t> visited;
168-
int visno;
168+
uint8_t visno;
169169

170170
explicit VisitedTable(int size) : visited(size), visno(1) {}
171171

0 commit comments

Comments
 (0)