From: Matthew Fernandez Date: Sun, 6 Mar 2022 23:01:49 +0000 (-0800) Subject: common l2dist: rephrase an open coded 'hypot' X-Git-Tag: 4.0.0~185^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c941aeccdcc0e8b8f141e8861dd97722e469eb5;p=graphviz common l2dist: rephrase an open coded 'hypot' --- diff --git a/lib/common/taper.c b/lib/common/taper.c index ae8ec72c4..29ff42ab1 100644 --- a/lib/common/taper.c +++ b/lib/common/taper.c @@ -173,7 +173,7 @@ static double l2dist (pointf p0, pointf p1) { double delx = p0.x - p1.x; double dely = p0.y - p1.y; - return sqrt(delx*delx + dely*dely); + return hypot(delx, dely); } /* analyze current path, creating pathpoints array