Skip to content

Commit

Permalink
use public Py_HashPointer API on 3.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzmahone committed Jan 27, 2024
1 parent 39f9987 commit 328ae8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/c/_cffi_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,11 @@ static Py_hash_t cdata_hash(PyObject *v)
}
Py_DECREF(vv);
}
#if PY_VERSION_HEX >= 0x030D0000
return _Py_HashPointer(((CDataObject *)v)->c_data);
#else
return Py_HashPointer(((CDataObject *)v)->c_data);
#endif
}

static Py_ssize_t
Expand Down

0 comments on commit 328ae8b

Please sign in to comment.