Skip to content

Commit e201015

Browse files
committed
config BUGFIX avoid casting to atomic_uintptr_t
Because it seems it does not have to behave as a standard type. Refs #253
1 parent 7f1fa3c commit e201015

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/config.h.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
#cmakedefine HAVE_STDATOMIC
3535
#ifdef HAVE_STDATOMIC
3636
# include <stdatomic.h>
37+
# include <stdint.h>
3738

3839
# define ATOMIC_UINT32_T atomic_uint_fast32_t
3940
# define ATOMIC_PTR atomic_uintptr_t
40-
# define ATOMIC_STORE(x, val) atomic_store(&(x), (atomic_uintptr_t)(val))
41+
# define ATOMIC_STORE(x, val) atomic_store(&(x), (uintptr_t)(val))
4142
# define ATOMIC_LOAD(x) ((void *)atomic_load(&(x)))
4243
# define ATOMIC_INC(x) atomic_fetch_add(&(x), 1)
4344
#else

0 commit comments

Comments
 (0)