fix const cast with custom "unconst"

This commit is contained in:
christos 2019-03-05 22:37:39 +00:00
parent 4fcb57530e
commit 2460de9976
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ atomic_load_##short_type(const atomic_##short_type##_t *a, \
* convenient for our purposes. This cast is a workaround. \
*/ \
atomic_##short_type##_t* a_nonconst = \
(atomic_##short_type##_t*)a; \
(atomic_##short_type##_t*)(_Atomic void *)(_Atomic uintptr_t)(a); \
return atomic_load_explicit(a_nonconst, mo); \
} \
\