Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c_api/index_io_c_ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int faiss_write_index_buf(const FaissIndex* idx, size_t* size, unsigned char** b
CATCH_AND_HANDLE
}

int faiss_read_index_buf(const uint8_t* buf, int size, int io_flags, FaissIndex** p_out) {
int faiss_read_index_buf(const uint8_t* buf, size_t size, int io_flags, FaissIndex** p_out) {
try {
faiss::BufIOReader reader;
reader.buf = buf;
Expand Down
2 changes: 1 addition & 1 deletion c_api/index_io_c_ex.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int faiss_write_index_buf(const FaissIndex* idx, size_t* buf_size, unsigned char

/** Read index from buffer
*/
int faiss_read_index_buf(const unsigned char* buf, int limit, int io_flags,
int faiss_read_index_buf(const unsigned char* buf, size_t limit, int io_flags,
FaissIndex** p_out);

#ifdef __cplusplus
Expand Down