From: Matthew Fernandez Date: Sun, 6 Mar 2022 23:01:05 +0000 (-0800) Subject: neatogen dist: rephrase an open coded 'hypot' X-Git-Tag: 4.0.0~185^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73667dd89b5ebfacc0c39d9b1c987bc287d8b84a;p=graphviz neatogen dist: rephrase an open coded 'hypot' --- diff --git a/lib/neatogen/site.c b/lib/neatogen/site.c index 91f5a9607..501fad2d6 100644 --- a/lib/neatogen/site.c +++ b/lib/neatogen/site.c @@ -38,7 +38,7 @@ double dist(Site * s, Site * t) dx = s->coord.x - t->coord.x; dy = s->coord.y - t->coord.y; - ans = sqrt(dx * dx + dy * dy); + ans = hypot(dx, dy); return ans; }