X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13cfb5c4733854671750256e92a6aca384d25626..f6c0000d54b4220bfac8e0ff45f392d48b035e7c:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 0d207a81d9..2efe7b7e59 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -93,7 +93,7 @@ void SIMIX_process_cleanup(smx_actor_t process) xbt_os_mutex_acquire(simix_global->mutex); /* cancel non-blocking communications */ - smx_activity_t synchro = static_cast(process->comms.front()); + smx_activity_t synchro = process->comms.front(); while (not process->comms.empty()) { simgrid::kernel::activity::CommImplPtr comm = boost::static_pointer_cast(synchro); @@ -119,7 +119,7 @@ void SIMIX_process_cleanup(smx_actor_t process) xbt_die("Communication synchro %p is in my list but I'm not the sender nor the receiver", synchro); } process->comms.pop_front(); - synchro = static_cast(process->comms.front()); + synchro = process->comms.front(); comm->cancel(); }