From: Matthew Fernandez Date: Sun, 6 Mar 2022 22:51:28 +0000 (-0800) Subject: topfish DIST: rephrase an open coded 'hypot' X-Git-Tag: 4.0.0~185^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f647b1753bbb1c70a785eb213b51eb2710ac90e;p=graphviz topfish DIST: rephrase an open coded 'hypot' --- diff --git a/lib/topfish/rescale_layout.c b/lib/topfish/rescale_layout.c index 30c763e1f..7d62b7c69 100644 --- a/lib/topfish/rescale_layout.c +++ b/lib/topfish/rescale_layout.c @@ -315,7 +315,7 @@ rescale_layout(double *x_coords, double *y_coords, } } -#define DIST(x1,y1,x2,y2) (sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))) +#define DIST(x1, y1, x2, y2) hypot((x1) - (x2), (y1) - (y2)) static void rescale_layout_polarFocus(v_data * graph, int n,