From 564c6ba2f899a4b530d58f6ac123e31d6b797fe2 Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Thu, 12 Apr 2018 18:05:14 +0200 Subject: Fix avltree_deletenode Signed-off-by: Olivier Brunel --- src/include/skalibs/avltree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/skalibs/avltree.h b/src/include/skalibs/avltree.h index 1ce7385..8234d95 100644 --- a/src/include/skalibs/avltree.h +++ b/src/include/skalibs/avltree.h @@ -48,7 +48,7 @@ extern int avltree_newnode (avltree *, uint32_t, uint32_t *) ; #define avltree_insertnode(t, i) avltree_setroot(t, avlnode_insertnode(avltree_nodes(t), avltree_totalsize(t), avltree_root(t), i, (t)->dtok, (t)->kcmp, (t)->external)) extern int avltree_insert (avltree *, uint32_t) ; -#define avltree_deletenode(t, i) avltree_delete(t, (*(t)->dtok)(avltree_data(t, i))) +#define avltree_deletenode(t, i) avltree_delete(t, (*(t)->dtok)(avltree_data(t, i),(t)->external)) extern int avltree_delete (avltree *, void const *) ; #define avltree_iter(t, f, p) avlnode_iter(avltree_nodes(t), avltree_totalsize(t), avltree_root(t), f, p) -- cgit v1.2.3