Skip to content

Commit d50b249

Browse files
authored
Merge pull request #192 from xiejq1990/xiejianqiao-dev
fix,overflow in getIdsList
2 parents 38482db + 59f5ae7 commit d50b249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_bindings/bindings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ class Index {
244244
return data;
245245
}
246246

247-
std::vector<unsigned int> getIdsList() {
247+
std::vector<hnswlib::labeltype> getIdsList() {
248248

249-
std::vector<unsigned int> ids;
249+
std::vector<hnswlib::labeltype> ids;
250250

251251
for(auto kv : appr_alg->label_lookup_) {
252252
ids.push_back(kv.first);

0 commit comments

Comments
 (0)