From bc53100f1ef063e09d77e8670e1796bc67017411 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 28 Sep 2021 13:39:24 -0700 Subject: Checkin: various small changes --- sys/libbio/phylo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/libbio/phylo.c') diff --git a/sys/libbio/phylo.c b/sys/libbio/phylo.c index 920102b..cb5c75c 100644 --- a/sys/libbio/phylo.c +++ b/sys/libbio/phylo.c @@ -84,7 +84,7 @@ phylo·countleafs(bio·Node *node, int *n) { error err; bio·Node *child; - + if (!node->nchild) { *n += 1; } @@ -392,7 +392,7 @@ phylo·reroot(bio·Tree *tree, bio·Node *node, double d) // TODO: should check that node is part of this tree? // TODO: should we check if node->parent != nil? - + if (fabs(d) < PREC) { new = node; rotateparent(node->parent, node); @@ -402,7 +402,7 @@ phylo·reroot(bio·Tree *tree, bio·Node *node, double d) rotateparent(new->parent->parent, new->parent); } } else { - new = tree->heap.alloc(tree->h, 1, sizeof(*new)); + new = tree->mem.alloc(tree->heap, 1, sizeof(*new)); memset(new, 0, sizeof(*new)); phylo·addchild(new, node); -- cgit v1.2.1