chiark / gitweb /
add one missing call to FOR_BITS (no functional change)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 12:05:51 +0000 (12:05 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 12:22:42 +0000 (12:22 +0000)
main.c

diff --git a/main.c b/main.c
index 11bdf0f..b7aae53 100644 (file)
--- a/main.c
+++ b/main.c
@@ -512,7 +512,7 @@ static void optimise(bool doprint) {
   glp_set_obj_coef(prob, X_minimum, 1);
 
   for (i=0; i<n; i++) {
-    for (j=0, jbit=1; j<m; j++, jbit<<=1) {
+    FOR_BITS(j,m) {
       if (!(adjmatrix[i] & jbit))
        continue;
       /* x_total_i += x_minimum */