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 @@ -17,7 +17,7 @@
using faiss::Index;
using faiss::IndexBinary;

int faiss_write_index_buf(const FaissIndex* idx, int* size, unsigned char** buf) {
int faiss_write_index_buf(const FaissIndex* idx, size_t* size, unsigned char** buf) {
try {
faiss::VectorIOWriter writer;
faiss::write_index(reinterpret_cast<const Index*>(idx), &writer);
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 @@ -23,7 +23,7 @@ extern "C" {

/** Write index to buffer
*/
int faiss_write_index_buf(const FaissIndex* idx, int* buf_size, unsigned char** buf);
int faiss_write_index_buf(const FaissIndex* idx, size_t* buf_size, unsigned char** buf);

/** Read index from buffer
*/
Expand Down