summaryrefslogtreecommitdiffstats
path: root/Include/setobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/setobject.h')
-rw-r--r--Include/setobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index 87ec1c8..fc0ea83 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -64,7 +64,7 @@ typedef struct {
PyObject *weakreflist; /* List of weak references */
} PySetObject;
-#define PySet_GET_SIZE(so) (((PySetObject *)(so))->used)
+#define PySet_GET_SIZE(so) (assert(PyAnySet_Check(so)),(((PySetObject *)(so))->used))
PyAPI_DATA(PyObject *) _PySet_Dummy;