Skip to content

Commit 2b7a995

Browse files
committed
ch4/ucx: fixups in ucx_spawn.c
Fix a ubsan warnings in ch4i_comm.c.
1 parent 9b405c0 commit 2b7a995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpid/ch4/src/ch4i_comm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ int MPIDI_check_disjoint_lpids(MPIR_Lpid lpids1[], int n1, MPIR_Lpid lpids2[], i
9292
uint64_t n = shrink(lpids2[i], num_low_bits);
9393
int idx = n / 32;
9494
int bit = n % 32;
95-
if (gpidmask[idx] & (1 << bit)) {
95+
if (gpidmask[idx] & (1ULL << bit)) {
9696
MPIR_ERR_SET1(mpi_errno, MPI_ERR_COMM,
9797
"**dupprocesses", "**dupprocesses %d", (int) lpids2[i]);
9898
goto fn_fail;
9999
}
100100
/* Add a check on duplicates *within* group 2 */
101-
gpidmask[idx] = gpidmask[idx] | (1 << bit);
101+
gpidmask[idx] = gpidmask[idx] | (1ULL << bit);
102102
MPIR_Assert(idx < mask_size);
103103
}
104104

0 commit comments

Comments
 (0)