summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_hamt.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_hamt.h')
-rw-r--r--Include/internal/pycore_hamt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_hamt.h b/Include/internal/pycore_hamt.h
index e65aef5..aaf6559 100644
--- a/Include/internal/pycore_hamt.h
+++ b/Include/internal/pycore_hamt.h
@@ -8,7 +8,7 @@
#define _Py_HAMT_MAX_TREE_DEPTH 7
-#define PyHamt_Check(o) (Py_TYPE(o) == &_PyHamt_Type)
+#define PyHamt_Check(o) Py_IS_TYPE(o, &_PyHamt_Type)
/* Abstract tree node. */