mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Merge ssize_t branch.
This commit is contained in:
parent
4482929734
commit
18e165558b
102 changed files with 2659 additions and 1677 deletions
|
@ -1274,7 +1274,7 @@ _PyObject_GC_New(PyTypeObject *tp)
|
|||
}
|
||||
|
||||
PyVarObject *
|
||||
_PyObject_GC_NewVar(PyTypeObject *tp, int nitems)
|
||||
_PyObject_GC_NewVar(PyTypeObject *tp, Py_ssize_t nitems)
|
||||
{
|
||||
const size_t size = _PyObject_VAR_SIZE(tp, nitems);
|
||||
PyVarObject *op = (PyVarObject *) _PyObject_GC_Malloc(size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue