mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-46417: Use _PyType_CAST() in Objects directory (GH-30764)
This commit is contained in:
parent
7835cbf949
commit
ac1f152421
9 changed files with 13 additions and 20 deletions
|
@ -108,10 +108,9 @@ static void
|
|||
structseq_dealloc(PyStructSequence *obj)
|
||||
{
|
||||
Py_ssize_t i, size;
|
||||
PyTypeObject *tp;
|
||||
PyObject_GC_UnTrack(obj);
|
||||
|
||||
tp = (PyTypeObject *) Py_TYPE(obj);
|
||||
PyTypeObject *tp = Py_TYPE(obj);
|
||||
size = REAL_SIZE(obj);
|
||||
for (i = 0; i < size; ++i) {
|
||||
Py_XDECREF(obj->ob_item[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue