From 4692fed625076f5571b81fe031777de6ad1b4b02 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Sat, 27 Jan 2024 09:05:38 +0100 Subject: [PATCH] Wrong direction in the conditional --- src/c/_cffi_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c index 49a406e5..74623d0a 100644 --- a/src/c/_cffi_backend.c +++ b/src/c/_cffi_backend.c @@ -2457,7 +2457,7 @@ static Py_hash_t cdata_hash(PyObject *v) } Py_DECREF(vv); } -#if PY_VERSION_HEX >= 0x030D0000 +#if PY_VERSION_HEX < 0x030D0000 return _Py_HashPointer(((CDataObject *)v)->c_data); #else return Py_HashPointer(((CDataObject *)v)->c_data);