X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6f2e9113097b642198bdf52fc3a85a5593fa17cd..f186fd6470cd6853b97c53782c710745c628e810:/teshsuite/smpi/isp/umpire/no-error4.c diff --git a/teshsuite/smpi/isp/umpire/no-error4.c b/teshsuite/smpi/isp/umpire/no-error4.c index c962ccacd8..a1a2593ea8 100644 --- a/teshsuite/smpi/isp/umpire/no-error4.c +++ b/teshsuite/smpi/isp/umpire/no-error4.c @@ -36,7 +36,7 @@ main (int argc, char **argv) } else { if (rank == 0) { - memset (buf0, 0, buf_size); + memset (buf0, 0, buf_size*sizeof(int)); MPI_Send_init (buf0, buf_size, MPI_INT, 1, 0, MPI_COMM_WORLD, &aReq[0]); MPI_Recv_init (buf1, buf_size, MPI_INT, 1, 0, MPI_COMM_WORLD, &aReq[1]); @@ -46,14 +46,14 @@ main (int argc, char **argv) MPI_Waitall (2, aReq, aStatus); - memset (buf0, 1, buf_size); + memset (buf0, 1, buf_size*sizeof(int)); MPI_Startall (2, aReq); MPI_Waitall (2, aReq, aStatus); } else if (rank == 1) { - memset (buf1, 1, buf_size); + memset (buf1, 1, buf_size*sizeof(int)); MPI_Recv_init (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD, &aReq[0]); MPI_Send_init (buf1, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD, &aReq[1]); @@ -63,7 +63,7 @@ main (int argc, char **argv) MPI_Waitall (2, aReq, aStatus); - memset (buf1, 0, buf_size); + memset (buf1, 0, buf_size*sizeof(int)); MPI_Startall (2, aReq);