We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7405c5b commit 0509a17Copy full SHA for 0509a17
Objects/bytesobject.c
@@ -57,7 +57,7 @@ set_ob_shash(PyBytesObject *a, Py_hash_t hash)
57
_Py_COMP_DIAG_PUSH
58
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
59
#ifdef Py_GIL_DISABLED
60
- _Py_atomic_store_int_relaxed((int *)&a->ob_shash, (int)hash);
+ _Py_atomic_store_ssize_relaxed(&a->ob_shash, hash);
61
#else
62
a->ob_shash = hash;
63
#endif
@@ -70,7 +70,7 @@ get_ob_shash(PyBytesObject *a)
70
71
72
73
- return (Py_hash_t)_Py_atomic_load_int_relaxed((int *)&a->ob_shash);
+ return _Py_atomic_load_ssize_relaxed(&a->ob_shash);
74
75
return a->ob_shash;
76
0 commit comments