Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Use unsigned char* for smpi buffers.
[simgrid.git] / src / smpi / colls / allgather / allgather-bruck.cpp
index 1e7cf37..0aa067c 100644 (file)
@@ -88,7 +88,6 @@ int Coll_allgather_bruck::allgather(const void *send_buff, int send_count,
   int pof2 = 1;
 
   // local string variables
-  char *tmp_buff;
   char *send_ptr = (char *) send_buff;
   char *recv_ptr = (char *) recv_buff;
 
@@ -101,7 +100,7 @@ int Coll_allgather_bruck::allgather(const void *send_buff, int send_count,
 
   count = recv_count;
 
-  tmp_buff = (char *) smpi_get_tmp_sendbuffer(num_procs * recv_count * recv_extent);
+  unsigned char* tmp_buff = smpi_get_tmp_sendbuffer(num_procs * recv_count * recv_extent);
 
   // perform a local copy
   Datatype::copy(send_ptr, send_count, send_type, tmp_buff, recv_count, recv_type);