Skip to content

Commit

Permalink
Use uint8_t instead of uint32_t for faiss::VisitedTable.visno (#2873)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2873

Reviewed By: mdouze

Differential Revision: D46125491

fbshipit-source-id: 9c48bb55e54eb361438521494093a3f9ab823857
  • Loading branch information
Alexandr Guzhva authored and facebook-github-bot committed May 24, 2023
1 parent fd09e51 commit a3296f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/impl/AuxIndexStructures.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ struct FAISS_API InterruptCallback {
/// set implementation optimized for fast access.
struct VisitedTable {
std::vector<uint8_t> visited;
int visno;
uint8_t visno;

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

Expand Down

0 comments on commit a3296f4

Please sign in to comment.