bpo-9566: Fix a warning in Python/getargs.c (#2890)
This commit is contained in:
parent
067931dd95
commit
e7bc7aac3d
|
@ -2055,7 +2055,7 @@ vgetargskeywordsfast_impl(PyObject **args, Py_ssize_t nargs,
|
|||
|
||||
kwtuple = parser->kwtuple;
|
||||
pos = parser->pos;
|
||||
len = pos + PyTuple_GET_SIZE(kwtuple);
|
||||
len = pos + (int)PyTuple_GET_SIZE(kwtuple);
|
||||
|
||||
if (len > STATIC_FREELIST_ENTRIES) {
|
||||
freelist.entries = PyMem_NEW(freelistentry_t, len);
|
||||
|
|
Loading…
Reference in New Issue