aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--maxflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/maxflow.c b/maxflow.c
index 028946b..97ae8c4 100644
--- a/maxflow.c
+++ b/maxflow.c
@@ -80,7 +80,7 @@ int maxflow_with_scratch(void *scratch, int nv, int source, int sink,
/*
* Now do the BFS loop.
*/
- while (head < tail && prev[sink] <= 0) {
+ while (head < tail && prev[sink] < 0) {
from = todo[head++];
/*