Skip to content

Commit eb37574

Browse files
authored
Merge pull request #1773 from kawashima-fj/pr/hindexed-block-args
ompi/datatype: Fix args of HINDEXED_BLOCK
2 parents 5911cbc + 84b110a commit eb37574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/datatype/ompi_datatype_args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static ompi_datatype_t* __ompi_datatype_create_from_args( int32_t* i, MPI_Aint*
788788
ompi_datatype_create_hindexed_block( i[0], i[1], a, d[0], &datatype );
789789
{
790790
const int* a_i[2] = {&i[0], &i[1]};
791-
ompi_datatype_set_args( datatype, 2 + i[0], a_i, i[0], a, 1, d, MPI_COMBINER_HINDEXED_BLOCK );
791+
ompi_datatype_set_args( datatype, 2, a_i, i[0], a, 1, d, MPI_COMBINER_HINDEXED_BLOCK );
792792
}
793793
break;
794794
/******************************************************************/

0 commit comments

Comments
 (0)