Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
ChunjiangZhu committed Oct 24, 2019
1 parent 129b72e commit 16ca7da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_bindings/nmslib.cc
Expand Up @@ -199,12 +199,12 @@ struct IndexWrapper {

py::object convertResult_rq(std::set<const Object*> res) {
// Create numpy arrays for the output
size_t size = res->Size();
size_t size = res.Size();
py::array_t<int> ids(size);
py::array_t<dist_t> distances(size);

std::set<const Object*>::iterator it = setOfStr.begin();
while (it != setOfStr.end())
std::set<const Object*>::iterator it = res.begin();
while (it != res.end())
{
ids.mutable_at(i) = it->id();
//distances.mutable_at(size) = res->at(i)->id();
Expand Down

0 comments on commit 16ca7da

Please sign in to comment.