X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bd76919be169a04d524d59aaad0698411793a410..95fcf20e6ef0f0cb449faddd00b5500bede028af:/src/smpi/colls/allgatherv/allgatherv-mpich-rdb.cpp diff --git a/src/smpi/colls/allgatherv/allgatherv-mpich-rdb.cpp b/src/smpi/colls/allgatherv/allgatherv-mpich-rdb.cpp index c094c7d9a3..9174ad8731 100644 --- a/src/smpi/colls/allgatherv/allgatherv-mpich-rdb.cpp +++ b/src/smpi/colls/allgatherv/allgatherv-mpich-rdb.cpp @@ -8,6 +8,7 @@ #include "../colls_private.hpp" #include "smpi_status.hpp" +#include namespace simgrid{ namespace smpi{ @@ -48,7 +49,7 @@ int Coll_allgatherv_mpich_rdb::allgatherv ( recvtype->extent(&recvtype_true_lb, &recvtype_true_extent); - tmp_buf_rl= (void*)smpi_get_tmp_sendbuffer(total_count*(MAX(recvtype_true_extent,recvtype_extent))); + tmp_buf_rl = (void*)smpi_get_tmp_sendbuffer(total_count * std::max(recvtype_true_extent, recvtype_extent)); /* adjust for potential negative lower bound in datatype */ tmp_buf = (void *)((char*)tmp_buf_rl - recvtype_true_lb);