Since r357940 it is no longer possible to use a single type cast for all
atomic_*_ptr functions.
This commit is contained in:
parent
c6fd3e23f7
commit
83bf6ee49b
@ -120,7 +120,7 @@ typedef struct { \
|
||||
*/
|
||||
#define smr_serialized_load(p, ex) ({ \
|
||||
SMR_ASSERT(ex, "smr_serialized_load"); \
|
||||
(__typeof((p)->__ptr))atomic_load_ptr((uintptr_t *)&(p)->__ptr);\
|
||||
(__typeof((p)->__ptr))atomic_load_ptr(&(p)->__ptr); \
|
||||
})
|
||||
|
||||
/*
|
||||
@ -155,7 +155,7 @@ typedef struct { \
|
||||
*/
|
||||
#define smr_unserialized_load(p, ex) ({ \
|
||||
SMR_ASSERT(ex, "smr_unserialized_load"); \
|
||||
(__typeof((p)->__ptr))atomic_load_ptr((uintptr_t *)&(p)->__ptr);\
|
||||
(__typeof((p)->__ptr))atomic_load_ptr(&(p)->__ptr); \
|
||||
})
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user