From 8f647b1753bbb1c70a785eb213b51eb2710ac90e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Mar 2022 14:51:28 -0800 Subject: [PATCH] topfish DIST: rephrase an open coded 'hypot' --- lib/topfish/rescale_layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.50.1