summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--16.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/16.c b/16.c
index da78368..aaf10cc 100644
--- a/16.c
+++ b/16.c
@@ -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;