From c0dc4db2358fc0af76edca79af6d4eafb64a86ef Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 17 Jun 2021 18:17:21 -0700 Subject: [PATCH] abbreviate an open coded fmin in getEdgeList --- lib/fdpgen/layout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index 19a449cde..2fc54812d 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -627,9 +628,7 @@ static erec *getEdgeList(node_t * n, graph_t * g) bnd = M_PI; /* all values equal up to end */ else bnd = erecs[j].alpha; - delta = (bnd - a) / (j - i); - if (delta > ANG) - delta = ANG; + delta = fmin((bnd - a) / (j - i), ANG); inc = 0; for (; i < j; i++) { erecs[i].alpha += inc; -- 2.40.0