@@ -297,7 +297,7 @@ _Py_atomic_load_ssize(const Py_ssize_t *obj)
297
297
298
298
static inline void *
299
299
_Py_atomic_load_ptr (const void * obj )
300
- { return (void * )__atomic_load_n ((void * * )obj , __ATOMIC_SEQ_CST ); }
300
+ { return (void * )__atomic_load_n ((void * const * )obj , __ATOMIC_SEQ_CST ); }
301
301
302
302
303
303
// --- _Py_atomic_load_relaxed -----------------------------------------------
@@ -356,7 +356,7 @@ _Py_atomic_load_ssize_relaxed(const Py_ssize_t *obj)
356
356
357
357
static inline void *
358
358
_Py_atomic_load_ptr_relaxed (const void * obj )
359
- { return (void * )__atomic_load_n ((const void * * )obj , __ATOMIC_RELAXED ); }
359
+ { return (void * )__atomic_load_n ((void * const * )obj , __ATOMIC_RELAXED ); }
360
360
361
361
static inline unsigned long long
362
362
_Py_atomic_load_ullong_relaxed (const unsigned long long * obj )
@@ -490,11 +490,11 @@ _Py_atomic_store_ullong_relaxed(unsigned long long *obj,
490
490
491
491
static inline void *
492
492
_Py_atomic_load_ptr_acquire (const void * obj )
493
- { return (void * )__atomic_load_n ((void * * )obj , __ATOMIC_ACQUIRE ); }
493
+ { return (void * )__atomic_load_n ((void * const * )obj , __ATOMIC_ACQUIRE ); }
494
494
495
495
static inline uintptr_t
496
496
_Py_atomic_load_uintptr_acquire (const uintptr_t * obj )
497
- { return (uintptr_t )__atomic_load_n (( uintptr_t * ) obj , __ATOMIC_ACQUIRE ); }
497
+ { return (uintptr_t )__atomic_load_n (obj , __ATOMIC_ACQUIRE ); }
498
498
499
499
static inline void
500
500
_Py_atomic_store_ptr_release (void * obj , void * value )
0 commit comments