
This happens because:
Py_ssize_t c_args_len = 0;- But,
PyEval_EvalCodeEx expects int:
PyObject*PyEval_EvalCodeEx(PyObject*_co, PyObject*globals, PyObject*locals,
PyObject*const*args, intargcount,
PyObject*const*kws, intkwcount,
PyObject*const*defs, intdefcount,
PyObject*kwdefs, PyObject*closure)
Looks like this is a side effect of ae62bdd
Possible solution is to use an explicit (int) converter.
I don't think that we should really worry about an overflow in the test code.
I will send a PR to check if this is a proper fix.
CC @ambv as the original PR reviewer.
Linked PRs
This happens because:
Py_ssize_t c_args_len = 0;PyEval_EvalCodeExexpectsint:Looks like this is a side effect of ae62bdd
Possible solution is to use an explicit
(int)converter.I don't think that we should really worry about an overflow in the test code.
I will send a PR to check if this is a proper fix.
CC @ambv as the original PR reviewer.
Linked PRs
_testcapimodule#101657