@@ -297,7 +297,7 @@ _Py_atomic_load_ssize(const Py_ssize_t *obj)
297297
298298static inline void *
299299_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 ); }
301301
302302
303303// --- _Py_atomic_load_relaxed -----------------------------------------------
@@ -356,7 +356,7 @@ _Py_atomic_load_ssize_relaxed(const Py_ssize_t *obj)
356356
357357static inline void *
358358_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 ); }
360360
361361static inline unsigned long long
362362_Py_atomic_load_ullong_relaxed (const unsigned long long * obj )
@@ -490,11 +490,11 @@ _Py_atomic_store_ullong_relaxed(unsigned long long *obj,
490490
491491static inline void *
492492_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 ); }
494494
495495static inline uintptr_t
496496_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 ); }
498498
499499static inline void
500500_Py_atomic_store_ptr_release (void * obj , void * value )
0 commit comments