Skip to content

Commit

Permalink
Restore const qualifier for get_link_array and get_level_array member…
Browse files Browse the repository at this point in the history
… functions.
  • Loading branch information
Tor Egge authored and Tor Egge committed Mar 22, 2022
1 parent 68b672d commit 2188d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searchlib/src/vespa/searchlib/tensor/hnsw_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct HnswGraph {
return LevelArrayRef();
}

LevelArrayRef get_level_array(uint32_t docid) {
LevelArrayRef get_level_array(uint32_t docid) const {
auto node_ref = get_node_ref(docid);
return get_level_array(node_ref);
}
Expand All @@ -94,7 +94,7 @@ struct HnswGraph {
return LinkArrayRef();
}

LinkArrayRef get_link_array(uint32_t docid, uint32_t level) {
LinkArrayRef get_link_array(uint32_t docid, uint32_t level) const {
auto levels = get_level_array(docid);
return get_link_array(levels, level);
}
Expand Down

0 comments on commit 2188d3b

Please sign in to comment.