diff options
Diffstat (limited to '16.c')
-rw-r--r-- | 16.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -326,9 +326,10 @@ main(int argc, char ** argv) // Is it a new high? if (flow > max) { if (debug) { + struct valve ** j; fprintf(stderr, "Found new max flow: %d: ", max); - for (pv = path; pv < path + 1 + nflows; ++pv) - fprintf(stderr, "%s%s", pv == path ? "" : "->", (*pv)->name); + for (j = path; j < path + 1 + nflows; ++j) + fprintf(stderr, "%s%s", j == path ? "" : "->", (*j)->name); fprintf(stderr, "\n"); } max = flow; |