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) --- Python/hamt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Python/hamt.c') diff --git a/Python/hamt.c b/Python/hamt.c index a0fee4c7a6..729981033f 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -274,9 +274,9 @@ to introspect the tree: */ -#define IS_ARRAY_NODE(node) (Py_TYPE(node) == &_PyHamt_ArrayNode_Type) -#define IS_BITMAP_NODE(node) (Py_TYPE(node) == &_PyHamt_BitmapNode_Type) -#define IS_COLLISION_NODE(node) (Py_TYPE(node) == &_PyHamt_CollisionNode_Type) +#define IS_ARRAY_NODE(node) Py_IS_TYPE(node, &_PyHamt_ArrayNode_Type) +#define IS_BITMAP_NODE(node) Py_IS_TYPE(node, &_PyHamt_BitmapNode_Type) +#define IS_COLLISION_NODE(node) Py_IS_TYPE(node, &_PyHamt_CollisionNode_Type) /* Return type for 'find' (lookup a key) functions. -- cgit v1.2.1