summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-03-04 13:15:20 (GMT)
committerGitHub <noreply@github.com>2020-03-04 13:15:20 (GMT)
commitdffe4c07095e0c693e094d3c140e85a68bd8128e (patch)
tree1f58f4c2f76d6f630c5279a7b72d31bb6b4d8873 /Objects/tupleobject.c
parent22a9a546ff3bf2a63d77ca1e5494e758bc59132f (diff)
downloadcpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.zip
cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.gz
cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.bz2
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index d114bd6..92374cc 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -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]++;