Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill trailing whitespaces in teshsuite/smpi/{isp,mpich3-test}.
[simgrid.git] / teshsuite / smpi / isp / umpire / basic-deadlock-comm_create.c
index 0c75f1f..c709519 100644 (file)
@@ -56,14 +56,14 @@ main (int argc, char **argv)
 
       if (dnprocs > 1) {
        if (drank == 0) {
-         memset (buf0, 0, buf_size);
+         memset (buf0, 0, buf_size*sizeof(int));
 
          MPI_Recv (buf1, buf_size, MPI_INT, 1, 0, comm, &status);
-       
+
          MPI_Send (buf0, buf_size, MPI_INT, 1, 0, comm);
        }
        else if (drank == 1) {
-         memset (buf1, 1, buf_size);
+         memset (buf1, 1, buf_size*sizeof(int));
 
          MPI_Recv (buf0, buf_size, MPI_INT, 0, 0, comm, &status);