Skip to content

Commit

Permalink
Fix compat: PyLong_GetSign will be added in 3.14a0
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 8, 2024
1 parent 26cda8c commit 7cf7603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thirdparty/pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,8 @@ PyDict_SetDefaultRef(PyObject *d, PyObject *key, PyObject *default_value,
#endif


// gh-116560 added PyLong_GetSign() to Python 3.14a4
#if PY_VERSION_HEX < 0x030E00A1
// gh-116560 added PyLong_GetSign() to Python 3.14a0
#if PY_VERSION_HEX < 0x030E00A0
static inline int PyLong_GetSign(PyObject *obj, int *sign)
{
if (!PyLong_Check(obj)) {
Expand Down

0 comments on commit 7cf7603

Please sign in to comment.