mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
This commit is contained in:
parent
22a9a546ff
commit
dffe4c0709
23 changed files with 56 additions and 57 deletions
|
@ -237,7 +237,7 @@ tupledealloc(PyTupleObject *op)
|
|||
#if PyTuple_MAXSAVESIZE > 0
|
||||
if (len < PyTuple_MAXSAVESIZE &&
|
||||
numfree[len] < PyTuple_MAXFREELIST &&
|
||||
Py_TYPE(op) == &PyTuple_Type)
|
||||
Py_IS_TYPE(op, &PyTuple_Type))
|
||||
{
|
||||
op->ob_item[0] = (PyObject *) free_list[len];
|
||||
numfree[len]++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue