Permalink
Browse files

Pedantic warning fix

  • Loading branch information...
1 parent 75c6d65 commit c915e59217a6592ad5386a42a455833c03e3a95f @tekinozbek tekinozbek committed Aug 23, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 c/src/binarysearchtree.c
@@ -184,7 +184,7 @@ int binarysearchtree_remove(binarysearchtree_t* tree, void* elem) {
node = find_node(tree, elem);
- if (node == NULL || tree->cmp(elem, node->data) != NULL)
+ if (node == NULL || tree->cmp(elem, node->data) != 0)
return 0;
if (node->left == NULL || node->right == NULL) {

0 comments on commit c915e59

Please sign in to comment.