Skip to content

Commit 404987e

Browse files
committed
mtl/ofi: Fix mismatching types.
1 parent 3ad5943 commit 404987e

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)