diff options
Diffstat (limited to 'sys/libbio/phylo.c')
-rw-r--r-- | sys/libbio/phylo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |