Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Use unsigned char* for smpi buffers.
[simgrid.git] / src / smpi / colls / smpi_nbc_impl.cpp
index eed0380..51af4b1 100644 (file)
@@ -441,7 +441,7 @@ int Colls::ireduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype d
   if (size <= 0)
     return MPI_ERR_COMM;
 
-  void* tmp_sendbuf = nullptr;
+  unsigned char* tmp_sendbuf = nullptr;
   if( sendbuf == MPI_IN_PLACE ) {
     tmp_sendbuf = smpi_get_tmp_sendbuffer(count * datatype->get_extent());
     Datatype::copy(recvbuf, count, datatype, tmp_sendbuf, count, datatype);