From 3417df8d7a017fd5bed99c85ffbb239a38518ae0 Mon Sep 17 00:00:00 2001 From: stevenj Date: Sun, 26 Aug 2007 16:36:25 -0400 Subject: [PATCH] bug fix in Gablonsky measure for cdirect darcs-hash:20070826203625-c8de0-e0701d1fb83a9aacfcf1101042106fb22b7c85a2.gz --- cdirect/cdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdirect/cdirect.c b/cdirect/cdirect.c index 5b697ab..51e630c 100644 --- a/cdirect/cdirect.c +++ b/cdirect/cdirect.c @@ -59,7 +59,7 @@ static double rect_diameter(int n, const double *w, const params *p) for (i = 0; i < n; ++i) if (w[i] > maxw) maxw = w[i]; - return w[i] * 0.5; /* half-width of longest side */ + return maxw * 0.5; /* half-width of longest side */ } } -- 2.30.2