summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2018-04-12 18:05:14 +0200
committerLaurent Bercot <ska-skaware@skarnet.org>2018-04-12 20:07:39 +0000
commit564c6ba2f899a4b530d58f6ac123e31d6b797fe2 (patch)
tree0417287dfe53694ff095e2b161dff4a897c8d476
parent06dd48d485bfde56273cd908336060bc00c66cdb (diff)
downloadskalibs-564c6ba2f899a4b530d58f6ac123e31d6b797fe2.tar.xz
Fix avltree_deletenode
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
-rw-r--r--src/include/skalibs/avltree.h2
1 files changed, 1 insertions, 1 deletions
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)