From b55f4e74bed4ed8df05dff80c4bffa039df7882c Mon Sep 17 00:00:00 2001 From: stevenj Date: Wed, 29 Aug 2007 01:26:15 -0400 Subject: [PATCH] whoops! darcs-hash:20070829052615-c8de0-fa4b9d4c70043d41c0c6f2325ea01012c299bb50.gz --- cdirect/cdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdirect/cdirect.c b/cdirect/cdirect.c index 612aea2..35e5f01 100644 --- a/cdirect/cdirect.c +++ b/cdirect/cdirect.c @@ -267,7 +267,7 @@ static int convex_hull(rb_tree *t, double **hull) /* performance hack: most of the points in DIRECT lie along vertical lines at a few x values, and we can exploit this */ if (nhull && k[0] == hull[nhull - 1][0]) { /* x == previous x */ - if (k[1] == hull[nhull - 1][1]) { + if (k[1] > hull[nhull - 1][1]) { double kshift[2]; /* because of the round to float in rect_diameter, above, it shouldn't be possible for two diameters (x values) -- 2.30.2