Skip to content

Commit

Permalink
bee_tree: Fix a bug that prevented version sort
Browse files Browse the repository at this point in the history
We need some tests here. It is too easy to break our version sorting.

8)
  • Loading branch information
mariux committed May 31, 2012
1 parent 023f063 commit 1a105cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bee_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static struct bee_subtree *bee_tree_insert_node(struct bee_tree *tree, struct be
return NULL;
}

if (tree->flags & (BEE_TREE_FLAG_UNIQUE_DATA|BEE_TREE_FLAG_COMPARE_DATA_ON_EQUAL_KEY)) {
if ((cmp == 0) && tree->flags & (BEE_TREE_FLAG_UNIQUE_DATA|BEE_TREE_FLAG_COMPARE_DATA_ON_EQUAL_KEY)) {

assert(tree->compare_data);

Expand Down

0 comments on commit 1a105cc

Please sign in to comment.