X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/500d56f4d9b6e10ad5bfa2b96e0154f212a3a505..5b547799240cfe5d60c1c4161e3fc8849095e2ca:/examples/cpp/comm-waitany/s4u-comm-waitany.cpp diff --git a/examples/cpp/comm-waitany/s4u-comm-waitany.cpp b/examples/cpp/comm-waitany/s4u-comm-waitany.cpp index fa8b117cdb..a7e57cd83e 100644 --- a/examples/cpp/comm-waitany/s4u-comm-waitany.cpp +++ b/examples/cpp/comm-waitany/s4u-comm-waitany.cpp @@ -77,10 +77,10 @@ public: * Even in this simple example, the pending comms do not terminate in the exact same order of creation. */ while (not pending_comms.empty()) { - int changed_pos = sg4::Comm::wait_any(pending_comms); + ssize_t changed_pos = sg4::Comm::wait_any(pending_comms); pending_comms.erase(pending_comms.begin() + changed_pos); if (changed_pos != 0) - XBT_INFO("Remove the %dth pending comm: it terminated earlier than another comm that was initiated first.", + XBT_INFO("Remove the %zdth pending comm: it terminated earlier than another comm that was initiated first.", changed_pos); }