aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/phylo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbio/phylo.c')
-rw-r--r--src/libbio/phylo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libbio/phylo.c b/src/libbio/phylo.c
index 1b0ae59..2343e23 100644
--- a/src/libbio/phylo.c
+++ b/src/libbio/phylo.c
@@ -393,10 +393,10 @@ 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){
+ if(math·fabs(d) < PREC){
new = node;
rotateparent(node->parent, node);
- }else if(fabs(d-node->dist) < PREC){
+ }else if(math·fabs(d-node->dist) < PREC){
new = node->parent;
if (new->parent->parent) {
rotateparent(new->parent->parent, new->parent);