From 9f711e307baab467e99a5f1e9e5ed3d90b67f5f7 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 5 Jul 2012 22:31:51 +0200 Subject: [PATCH] Break loop here. Commit fcc0e93b60352e0d912f18c32706c1ca717c4896 (More cache cleaning in lmm_solve) wrongly changed a "break" statement into a "continue". Fixes infinite loop in tests smpi-reduce. --- src/surf/maxmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index b8f4d10af5..a441d1e27e 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -661,7 +661,7 @@ void lmm_solve(lmm_system_t sys) xbt_swag_foreach(elem, elem_list) { make_elem_active(elem); if (elem->variable->weight <= 0 || elem->variable->value > 0) - continue; + break; if (elem->value > 0) cnst->usage = MAX(cnst->usage, elem->value / elem->variable->weight); } -- 2.20.1