X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/500d56f4d9b6e10ad5bfa2b96e0154f212a3a505..5b547799240cfe5d60c1c4161e3fc8849095e2ca:/src/msg/msg_comm.cpp diff --git a/src/msg/msg_comm.cpp b/src/msg/msg_comm.cpp index 274358f7d7..91f56b0591 100644 --- a/src/msg/msg_comm.cpp +++ b/src/msg/msg_comm.cpp @@ -161,7 +161,7 @@ void MSG_comm_waitall(msg_comm_t* comm, int nb_elem, double timeout) */ int MSG_comm_waitany(const_xbt_dynar_t comms) { - int finished_index = -1; + ssize_t finished_index = -1; /* Create the equivalent array with SIMIX objects: */ std::vector s_comms; @@ -197,7 +197,7 @@ int MSG_comm_waitany(const_xbt_dynar_t comms) (*comm->task_received)->set_not_used(); } - return finished_index; + return static_cast(finished_index); } /**