From: Matthew Fernandez Date: Sun, 6 Mar 2022 23:05:54 +0000 (-0800) Subject: fdpgen dumpstat: rephrase an open coded 'hypot' X-Git-Tag: 4.0.0~185^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11a70d3e129d51ec94025e348d81c60c42c7b72d;p=graphviz fdpgen dumpstat: rephrase an open coded 'hypot' --- diff --git a/lib/fdpgen/tlayout.c b/lib/fdpgen/tlayout.c index 86155b541..ea5b847ea 100644 --- a/lib/fdpgen/tlayout.c +++ b/lib/fdpgen/tlayout.c @@ -30,6 +30,7 @@ #ifdef HAVE_SYS_TYPES_H #include #endif +#include #include #include #ifndef _WIN32 @@ -645,7 +646,7 @@ void dumpstat(graph_t * g) dx = ND_pos(np)[0] - ND_pos(aghead(ep))[0]; dy = ND_pos(np)[1] - ND_pos(aghead(ep))[1]; fprintf(stderr, " %s -- %s (%f)\n", agnameof(np), - agnameof(aghead(ep)), sqrt(dx * dx + dy * dy)); + agnameof(aghead(ep)), hypot(dx, dy)); } } }