Some compilers complain about casting a pointer to a integer type with a different
size. The correct way is to cast to an integer type that has the same length, and then allow the compiler to upgrade to the read type. This commit was SVN r19944.
Этот коммит содержится в:
родитель
1788518bca
Коммит
03434f8f10
@ -521,8 +521,8 @@ static inline int opal_atomic_cmpset_rel_ptr(volatile void* addr,
|
||||
* See opal_atomic_cmpset_* for pseudo-code.
|
||||
*/
|
||||
#define opal_atomic_cmpset( ADDR, OLDVAL, NEWVAL ) \
|
||||
opal_atomic_cmpset_xx( (volatile void*)(ADDR), (int64_t)(OLDVAL), \
|
||||
(int64_t)(NEWVAL), sizeof(*(ADDR)) )
|
||||
opal_atomic_cmpset_xx( (volatile void*)(ADDR), (intptr_t)(OLDVAL), \
|
||||
(intptr_t)(NEWVAL), sizeof(*(ADDR)) )
|
||||
|
||||
/**
|
||||
* Atomic compare and set of pointer with acquire semantics. This
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user