Skip to content
Closed
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
4 changes: 2 additions & 2 deletions faiss/impl/mapped_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ struct MmappedFileMappingOwner::PImpl {
const int fd = _fileno(f);
if (fd == -1) {
// no good
FAISS_THROW_FMT("could not get a HANDLE");
FAISS_THROW_MSG("could not get a HANDLE");
}

HANDLE file_handle = (HANDLE)_get_osfhandle(fd);
if (file_handle == INVALID_HANDLE_VALUE) {
FAISS_THROW_FMT("could not get an OS HANDLE");
FAISS_THROW_MSG("could not get an OS HANDLE");
}

// get the size of the file
Expand Down
Loading