Skip to content

Commit bd2710f

Browse files
committed
fix req converter abi to ompi
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 1525981 commit bd2710f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ompi/mpi/c/abi_converters.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,12 @@ __opal_attribute_always_inline__ static inline MPI_Win_ABI_INTERNAL ompi_convert
529529
}
530530
return (MPI_Win_ABI_INTERNAL) win;
531531
}
532-
__opal_attribute_always_inline__ static inline void ompi_convert_abi_request_intern_request(MPI_Request_ABI_INTERNAL *ptr)
532+
__opal_attribute_always_inline__ static inline MPI_Request ompi_convert_abi_request_intern_request(MPI_Request_ABI_INTERNAL request)
533533
{
534-
if (MPI_REQUEST_NULL == (MPI_Request) *ptr) {
535-
*ptr = MPI_REQUEST_NULL_ABI_INTERNAL;
534+
if (MPI_REQUEST_NULL_ABI_INTERNAL == request) {
535+
return MPI_REQUEST_NULL;
536536
}
537+
return (MPI_Request) request;
537538
}
538539
__opal_attribute_always_inline__ static inline MPI_Request_ABI_INTERNAL ompi_convert_ompi_request_abi_request(MPI_Request request)
539540
{

0 commit comments

Comments
 (0)