Skip to content

Commit

Permalink
A fix for the broken Build on Windows #119
Browse files Browse the repository at this point in the history
  • Loading branch information
searchivairus committed Nov 30, 2017
1 parent 9fe5b21 commit 43356e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion similarity_search/src/method/hnsw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,8 @@ namespace similarity {
void
Hnsw<dist_t>::LoadIndex(const string &location) {
LOG(LIB_INFO) << "Loading index from " << location;
std::ifstream input(location);//, std::ios::binary);
std::ifstream input(location,
std::ios::binary); /* text files can be opened in binary mode as well */
CHECK_MSG(input, "Cannot open file '" + location + "' for reading");

input.exceptions(ios::badbit | ios::failbit);
Expand Down

0 comments on commit 43356e6

Please sign in to comment.