chiark / gitweb /
in preconsider_ok, check for frags >= maxhamweight so we can force this to pass by...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 17:32:18 +0000 (17:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 17:32:18 +0000 (17:32 +0000)
main.c

diff --git a/main.c b/main.c
index f9402cf..0cc8d9b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -124,7 +124,7 @@ static bool preconsider_ok(int nwords, bool doprint) {
   bool had_max = 0;
   for (i=0, totalfrags=0; i<nwords; i++) {
     int frags = count_set_adj_bits(adjmatrix[i]);
-    had_max += (frags == maxhamweight);
+    had_max += (frags >= maxhamweight);
     totalfrags += frags;
     PRINTF("%"PRADJ" ", adjmatrix[i]);
     double maxminsize = (double)m / frags;