Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Nov 28, 2024
1 parent 47f89af commit f0812a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skiplist.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ node_insert(skiplist* list, skip_node* x, skip_node** update)
}

x->prev = (update[0] == list->head) ? NULL : update[0];
if (update[0]->link && update[0]->link[0])
if (update[0]->link[0])
update[0]->link[0]->prev = x;
for (unsigned k = 0; k < nlinks; k++) {
ASSERT(update[k]->link_count > k);
Expand Down

0 comments on commit f0812a0

Please sign in to comment.