From 1b55b65638254aa78b005fbf0b71fb02499f1852 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Mon, 17 Feb 2020 19:09:15 +0900 Subject: bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521) --- Modules/_struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_struct.c') diff --git a/Modules/_struct.c b/Modules/_struct.c index 0cdfe268e6..eed3659ed8 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -57,7 +57,7 @@ typedef struct { #define PyStruct_Check(op) PyObject_TypeCheck(op, (PyTypeObject *)_structmodulestate_global->PyStructType) -#define PyStruct_CheckExact(op) (Py_TYPE(op) == (PyTypeObject *)_structmodulestate_global->PyStructType) +#define PyStruct_CheckExact(op) Py_IS_TYPE(op, (PyTypeObject *)_structmodulestate_global->PyStructType) /* Define various structs to figure out the alignments of types */ -- cgit v1.2.1