X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7bf4da31d5d3b1940d0166da655136ccf6af8148..2750bde086c69304587076350db922bfd9da04f6:/src/smpi/mpi/smpi_datatype.cpp diff --git a/src/smpi/mpi/smpi_datatype.cpp b/src/smpi/mpi/smpi_datatype.cpp index c28c526b3f..68e42ef5c3 100644 --- a/src/smpi/mpi/smpi_datatype.cpp +++ b/src/smpi/mpi/smpi_datatype.cpp @@ -377,14 +377,14 @@ int Datatype::copy(const void* sendbuf, int sendcount, MPI_Datatype sendtype, vo //Default serialization method : memcpy. void Datatype::serialize(const void* noncontiguous_buf, void* contiguous_buf, int count) { - char* contiguous_buf_char = static_cast(contiguous_buf); - const char* noncontiguous_buf_char = static_cast(noncontiguous_buf)+lb_; + auto* contiguous_buf_char = static_cast(contiguous_buf); + const auto* noncontiguous_buf_char = static_cast(noncontiguous_buf) + lb_; memcpy(contiguous_buf_char, noncontiguous_buf_char, count*size_); } void Datatype::unserialize(const void* contiguous_buf, void *noncontiguous_buf, int count, MPI_Op op){ - const char* contiguous_buf_char = static_cast(contiguous_buf); - char* noncontiguous_buf_char = static_cast(noncontiguous_buf)+lb_; + const auto* contiguous_buf_char = static_cast(contiguous_buf); + auto* noncontiguous_buf_char = static_cast(noncontiguous_buf) + lb_; int n=count; if(op!=MPI_OP_NULL) op->apply( contiguous_buf_char, noncontiguous_buf_char, &n, this);