Skip to content

Commit b3fb472

Browse files
authored
Merge pull request #443 from jlmelville/438-gcc-reorder
#438: fix reordering warning
2 parents dd1bdb7 + 361893c commit b3fb472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hnswlib/hnswalg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
9292
size_t ef_construction = 200,
9393
size_t random_seed = 100,
9494
bool allow_replace_deleted = false)
95-
: link_list_locks_(max_elements),
96-
label_op_locks_(MAX_LABEL_OPERATION_LOCKS),
95+
: label_op_locks_(MAX_LABEL_OPERATION_LOCKS),
96+
link_list_locks_(max_elements),
9797
element_levels_(max_elements),
9898
allow_replace_deleted_(allow_replace_deleted) {
9999
max_elements_ = max_elements;

0 commit comments

Comments
 (0)