From 0fc2033c75429733f7bfeef376ddfb096e1016d6 Mon Sep 17 00:00:00 2001 From: Shintaro Iwasaki Date: Thu, 7 May 2020 16:06:07 +0000 Subject: [PATCH] opal/mca/threads/argobots: fix compilation error Fixes #7697 Signed-off-by: Shintaro Iwasaki --- opal/mca/threads/argobots/threads_argobots_mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/mca/threads/argobots/threads_argobots_mutex.c b/opal/mca/threads/argobots/threads_argobots_mutex.c index 7c8ffda43a..ce0df90962 100644 --- a/opal/mca/threads/argobots/threads_argobots_mutex.c +++ b/opal/mca/threads/argobots/threads_argobots_mutex.c @@ -105,7 +105,7 @@ void opal_mutex_create(struct opal_mutex_t *m) } void *null_ptr = OPAL_ABT_MUTEX_NULL; if (opal_atomic_compare_exchange_strong_ptr( - (intptr_t *)&m->m_lock_argobots, (intptr_t *)&null_ptr, + (opal_atomic_intptr_t *)&m->m_lock_argobots, (intptr_t *)&null_ptr, (intptr_t)abt_mutex)) { /* mutex is successfully created and substituted. */ return; @@ -121,7 +121,7 @@ static void opal_cond_create(opal_cond_t *cond) ABT_cond new_cond; ABT_cond_create(&new_cond); void *null_ptr = OPAL_ABT_COND_NULL; - if (opal_atomic_compare_exchange_strong_ptr((intptr_t *)cond, + if (opal_atomic_compare_exchange_strong_ptr((opal_atomic_intptr_t *)cond, (intptr_t *)&null_ptr, (intptr_t)new_cond)) { /* cond is successfully created and substituted. */