diff --git a/ompi/mpi/c/get_count.c b/ompi/mpi/c/get_count.c index 7ec456ff7d..9f683da903 100644 --- a/ompi/mpi/c/get_count.c +++ b/ompi/mpi/c/get_count.c @@ -34,12 +34,12 @@ static const char FUNC_NAME[] = "MPI_Get_count"; int MPI_Get_count(MPI_Status *status, MPI_Datatype datatype, int *count) { - int size = 0; - int rc = MPI_SUCCESS; + int size = 0; + int rc = MPI_SUCCESS; if (MPI_PARAM_CHECK) { OMPI_ERR_INIT_FINALIZE(FUNC_NAME); - OMPI_CHECK_DATATYPE_FOR_RECV(rc, datatype, 1); + OMPI_CHECK_DATATYPE_FOR_RECV(rc, datatype, count); OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME); }