https://github.com/python/cpython/commit/b78728210c716121c76856393bc0cc61cd2039d4
commit: b78728210c716121c76856393bc0cc61cd2039d4
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-04-18T12:17:36Z
summary:

[3.13] gh-132674: fix `_hashopenssl.c` compiler warnings on free-threaded build 
(GH-132675) (#132677)

gh-132674: fix `_hashopenssl.c` compiler warnings on free-threaded build 
(GH-132675)
(cherry picked from commit 2df0f8804701cc17674e5b4e90499e9fac71d0e1)

Co-authored-by: Bénédikt Tran <10796600+picn...@users.noreply.github.com>

files:
M Modules/_hashopenssl.c

diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index d569b5048669d1..b2a5754e774030 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -410,7 +410,7 @@ py_digest_by_name(PyObject *module, const char *name, enum 
Py_hash_type py_ht)
                 digest = PY_EVP_MD_fetch(entry->ossl_name, NULL);
 #ifdef Py_GIL_DISABLED
                 // exchange just in case another thread did same thing at same 
time
-                other_digest = _Py_atomic_exchange_ptr(&entry->evp, digest);
+                other_digest = _Py_atomic_exchange_ptr(&entry->evp, (void 
*)digest);
 #else
                 entry->evp = digest;
 #endif
@@ -422,7 +422,7 @@ py_digest_by_name(PyObject *module, const char *name, enum 
Py_hash_type py_ht)
                 digest = PY_EVP_MD_fetch(entry->ossl_name, "-fips");
 #ifdef Py_GIL_DISABLED
                 // exchange just in case another thread did same thing at same 
time
-                other_digest = _Py_atomic_exchange_ptr(&entry->evp_nosecurity, 
digest);
+                other_digest = _Py_atomic_exchange_ptr(&entry->evp_nosecurity, 
(void *)digest);
 #else
                 entry->evp_nosecurity = digest;
 #endif

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to