chiark / gitweb /
bug fix in Gablonsky measure for cdirect
authorstevenj <stevenj@alum.mit.edu>
Sun, 26 Aug 2007 20:36:25 +0000 (16:36 -0400)
committerstevenj <stevenj@alum.mit.edu>
Sun, 26 Aug 2007 20:36:25 +0000 (16:36 -0400)
darcs-hash:20070826203625-c8de0-e0701d1fb83a9aacfcf1101042106fb22b7c85a2.gz

cdirect/cdirect.c

index 5b697aba7f05cd57d5fe820aefa048a6e1f6c9d5..51e630c9f980dcdcbe358536aba52579fb8ffca0 100644 (file)
@@ -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 */
      }
 }