Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / msg / async-waitany / async-waitany.c
index f5d7631..b4152ab 100644 (file)
@@ -37,7 +37,7 @@ static int sender(int argc, char *argv[])
   }
   /* Here we are waiting for the completion of all communications */
 
-  while (!xbt_dynar_is_empty(d)) {
+  while (xbt_dynar_is_empty(d) == 0) {
     xbt_dynar_remove_at(d, MSG_comm_waitany(d), &comm);
     MSG_comm_destroy(comm);
   }