From 01f5b4007b62568ea52412a1e33c299534d15447 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 17 Oct 2006 02:40:17 +0000 Subject: [PATCH] Check the count. It has to be a positive number. This commit was SVN r12130. --- ompi/mpi/c/get_count.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }