Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finding this damn fucking bug took me an inordinate amount of time ! It was well...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 14 Jan 2005 19:52:28 +0000 (19:52 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 14 Jan 2005 19:52:28 +0000 (19:52 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@754 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/maxmin.c

index 200722f..a031586 100644 (file)
@@ -62,7 +62,7 @@ void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var)
   for (i = 0; i < var->cnsts_number; i++) {
     elem = &var->cnsts[i];
     xbt_swag_remove(elem, &(elem->constraint->element_set));
   for (i = 0; i < var->cnsts_number; i++) {
     elem = &var->cnsts[i];
     xbt_swag_remove(elem, &(elem->constraint->element_set));
-    if (xbt_swag_size(&(elem->constraint->element_set)))
+    if (!xbt_swag_size(&(elem->constraint->element_set)))
       make_constraint_inactive(sys, elem->constraint);
   }
   var->cnsts_number = 0;
       make_constraint_inactive(sys, elem->constraint);
   }
   var->cnsts_number = 0;