diff --git a/ompi/mpi/c/type_create_hindexed_block.c b/ompi/mpi/c/type_create_hindexed_block.c index b543f25ebe..8a81d8f84e 100644 --- a/ompi/mpi/c/type_create_hindexed_block.c +++ b/ompi/mpi/c/type_create_hindexed_block.c @@ -69,7 +69,7 @@ int MPI_Type_create_hindexed_block(int count, } { const int* a_i[2] = {&count, &blocklength}; - ompi_datatype_set_args( *newtype, 2 + count, a_i, count, array_of_displacements, 1, &oldtype, + ompi_datatype_set_args( *newtype, 2, a_i, count, array_of_displacements, 1, &oldtype, MPI_COMBINER_HINDEXED_BLOCK ); }