https://github.com/python/cpython/commit/2df0f8804701cc17674e5b4e90499e9fac71d0e1 commit: 2df0f8804701cc17674e5b4e90499e9fac71d0e1 branch: main author: Bénédikt Tran <10796600+picn...@users.noreply.github.com> committer: picnixz <10796600+picn...@users.noreply.github.com> date: 2025-04-18T13:52:17+02:00 summary:
gh-132674: fix `_hashopenssl.c` compiler warnings on free-threaded build (#132675) files: M Modules/_hashopenssl.c diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 08f5c0ece0a18c..756a8b70931baa 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -413,7 +413,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 @@ -425,7 +425,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