Skip to content

Commit 855c5b0

Browse files
committed
Merge pull request open-mpi#1194 from ggouaillardet/topic/v2.x/ompi_datatype_args
Fix MPI datatype args.
2 parents e577259 + 82c479a commit 855c5b0

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
@@ -100,7 +100,7 @@ typedef struct __dt_args {
100100
if( pArgs->ci == 0 ) pArgs->i = NULL; \
101101
else pArgs->i = (int*)buf; \
102102
pArgs->ref_count = 1; \
103-
pArgs->total_pack_size = (4 + (IC)) * sizeof(int) + \
103+
pArgs->total_pack_size = (4 + (IC) + (DC)) * sizeof(int) + \
104104
(AC) * sizeof(OPAL_PTRDIFF_TYPE); \
105105
(PDATA)->args = (void*)pArgs; \
106106
(PDATA)->packed_description = NULL; \

0 commit comments

Comments
 (0)