From: stevenj Date: Wed, 29 Aug 2007 05:26:15 +0000 (-0400) Subject: whoops! X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b55f4e74bed4ed8df05dff80c4bffa039df7882c;p=nlopt.git whoops! darcs-hash:20070829052615-c8de0-fa4b9d4c70043d41c0c6f2325ea01012c299bb50.gz --- 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)