Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit c3c7393

Browse files
committed
mtl/ofi: Fix mismatching types.
(cherry-picked from open-mpi/ompi@404987e)
1 parent f130c24 commit c3c7393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/mtl/ofi/mtl_ofi_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ typedef struct mca_mtl_ofi_component_t {
8484
{ \
8585
match_bits = contextid; \
8686
match_bits = (match_bits << 16); \
87-
match_bits |= source; \
87+
match_bits |= (uint64_t)source; \
8888
match_bits = (match_bits << 32); \
8989
match_bits |= (MTL_OFI_TAG_MASK & tag) | type; \
9090
}
@@ -106,7 +106,7 @@ typedef struct mca_mtl_ofi_component_t {
106106
match_bits = (match_bits << 32); \
107107
mask_bits |= MTL_OFI_SOURCE_MASK; \
108108
} else { \
109-
match_bits |= source; \
109+
match_bits |= (uint64_t)source; \
110110
match_bits = (match_bits << 32); \
111111
} \
112112
\

0 commit comments

Comments
 (0)