From: Arnaud Giersch Date: Thu, 5 Jul 2012 20:31:51 +0000 (+0200) Subject: Break loop here. X-Git-Tag: v3_8~321 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9f711e307baab467e99a5f1e9e5ed3d90b67f5f7 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. --- 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); }