Skip to content

Commit 8912ef9

Browse files
committed
Correctly handle MPI_UNSIGNED_LONG.
We incorrectly reference the internal long datatype with the MPI_UNSIGNED_LONG datatype. Thanks to Kendra Long for finding and analyzing the issue, as well as for the proposed fix. Signed-off-by: George Bosilca <[email protected]>
1 parent ab812d4 commit 8912ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/datatype/ompi_datatype_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ const ompi_datatype_t* ompi_datatype_basicDatatypes[OMPI_DATATYPE_MPI_MAX_PREDEF
374374
[OMPI_DATATYPE_MPI_UB] = &ompi_mpi_ub.dt,
375375

376376
[OMPI_DATATYPE_MPI_LONG] = &ompi_mpi_long.dt,
377-
[OMPI_DATATYPE_MPI_UNSIGNED_LONG] = &ompi_mpi_long.dt,
377+
[OMPI_DATATYPE_MPI_UNSIGNED_LONG] = &ompi_mpi_unsigned_long.dt,
378378
/* MPI 3.0 types */
379379
[OMPI_DATATYPE_MPI_COUNT] = &ompi_mpi_count.dt,
380380

0 commit comments

Comments
 (0)