Skip to content

Commit 3078485

Browse files
authored
Merge pull request #7712 from shintaro-iwasaki/fix7697
opal/mca/threads/argobots: fix compilation error
2 parents 4460e8b + 0fc2033 commit 3078485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/threads/argobots/threads_argobots_mutex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void opal_mutex_create(struct opal_mutex_t *m)
105105
}
106106
void *null_ptr = OPAL_ABT_MUTEX_NULL;
107107
if (opal_atomic_compare_exchange_strong_ptr(
108-
(intptr_t *)&m->m_lock_argobots, (intptr_t *)&null_ptr,
108+
(opal_atomic_intptr_t *)&m->m_lock_argobots, (intptr_t *)&null_ptr,
109109
(intptr_t)abt_mutex)) {
110110
/* mutex is successfully created and substituted. */
111111
return;
@@ -121,7 +121,7 @@ static void opal_cond_create(opal_cond_t *cond)
121121
ABT_cond new_cond;
122122
ABT_cond_create(&new_cond);
123123
void *null_ptr = OPAL_ABT_COND_NULL;
124-
if (opal_atomic_compare_exchange_strong_ptr((intptr_t *)cond,
124+
if (opal_atomic_compare_exchange_strong_ptr((opal_atomic_intptr_t *)cond,
125125
(intptr_t *)&null_ptr,
126126
(intptr_t)new_cond)) {
127127
/* cond is successfully created and substituted. */

0 commit comments

Comments
 (0)