Skip to content

Commit 0e11dff

Browse files
colesburyplashchynski
authored andcommitted
pythongh-131121: Fix _Py_atomic_store_char_relaxed memory order (pythongh-131122)
1 parent b7a55ee commit 0e11dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/cpython/pyatomic_gcc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ _Py_atomic_store_ullong_relaxed(unsigned long long *obj,
519519

520520
static inline void
521521
_Py_atomic_store_char_relaxed(char *obj, char value)
522-
{ __atomic_store_n(obj, value, __ATOMIC_RELEASE); }
522+
{ __atomic_store_n(obj, value, __ATOMIC_RELAXED); }
523523

524524
static inline void
525525
_Py_atomic_store_uchar_relaxed(unsigned char *obj, unsigned char value)

0 commit comments

Comments
 (0)