Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
avoid warnings in release builds by using Py_DEBUG
  • Loading branch information
eendebakpt committed Nov 22, 2024
commit d8c318d9251cf3f0f277df3b3af2fb49ec699c84
3 changes: 3 additions & 0 deletions Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3611,6 +3611,8 @@ long_richcompare(PyObject *self, PyObject *other, int op)
Py_RETURN_RICHCOMPARE(result, 0, op);
}


#ifdef Py_DEBUG
static int _is_python_smallint(PyObject *op)
{
PyLongObject *pylong = (PyLongObject*)op;
Expand All @@ -3625,6 +3627,7 @@ static int _is_python_smallint(PyObject *op)
}
return 0;
}
#endif

static void
long_dealloc(PyObject *self)
Expand Down