From 370bf8c03683c038ba27c598c28b547aa1ce854e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 16 Oct 2026 09:16:37 +0200 Subject: [PATCH] Add missing static inline to PyObject_GenericHash() Patch by Matti Picus. --- pythoncapi_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index e307119..c6fe172 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -1236,7 +1236,7 @@ static inline Py_hash_t Py_HashPointer(const void *ptr) #if PY_VERSION_HEX < _Py_PACK_VERSION(3, 13) || defined(Py_LIMITED_API) -Py_hash_t +static inline Py_hash_t PyObject_GenericHash(PyObject *obj) { return Py_HashPointer(obj);