X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2750bde086c69304587076350db922bfd9da04f6..1aab041889e9a68f49b95561ddb756cb1710157b:/src/smpi/mpi/smpi_win.cpp diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index 390f78ed1d..806b363d87 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -96,9 +96,9 @@ Win::~Win(){ int Win::attach(void* /*base*/, MPI_Aint size) { - if (not(base_ == MPI_BOTTOM || base_ == 0)) + if (not(base_ == MPI_BOTTOM || base_ == nullptr)) return MPI_ERR_ARG; - base_=0;//actually the address will be given in the RMA calls, as being the disp. + base_ = nullptr; // actually the address will be given in the RMA calls, as being the disp. size_+=size; return MPI_SUCCESS; } @@ -709,7 +709,7 @@ int Win::finish_comms(int rank){ if (size > 0) { size = 0; std::vector myreqqs; - std::vector::iterator iter = reqqs->begin(); + auto iter = reqqs->begin(); int proc_id = comm_->group()->actor(rank)->get_pid(); while (iter != reqqs->end()){ // Let's see if we're either the destination or the sender of this request