summaryrefslogtreecommitdiffstats
path: root/args.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-08-14 19:33:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-08-14 19:33:04 -0700
commit7ac870e986d747880307f071ec0465604f299c24 (patch)
tree785fff24a3a13a1a159f52e6bfa150cf2da9250c /args.h
parent29f314829fef594a90f7fe9c3152023f144af90a (diff)
downloadtxr-7ac870e986d747880307f071ec0465604f299c24.tar.gz
txr-7ac870e986d747880307f071ec0465604f299c24.tar.bz2
txr-7ac870e986d747880307f071ec0465604f299c24.zip
tree: bug: tree-delete-specific-node doesn't use key fun
* tree.c (tr_delete_specific): We cant' juse use key(node) as the search key; we must apply the tree's key function to the node key field to retrieve the correct search key. * tests/010/tree.tl: New test case which fails without this bugfix: a node which is the left subtree of the root node doesn't get deleted since the search is led astray by the wrong key object.
Diffstat (limited to 'args.h')
0 files changed, 0 insertions, 0 deletions