aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/phylo.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-12-05 16:16:21 -0800
committerNicholas Noll <nbnoll@eml.cc>2021-12-05 16:16:21 -0800
commit07e77936d535e58b0aeb4f2a11400c1050556739 (patch)
treefb50fad6436ecbc159505bee73a92cd289b99a07 /src/libbio/phylo.c
parentb48327d357e0818d1a6ae2a064cfa7d1567e1242 (diff)
Feat: added math library
Used Plan9's libc as starting point. This cleans up dangling references due to loss of libc.
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);