diff options
Diffstat (limited to 'Include/cellobject.h')
-rw-r--r-- | Include/cellobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cellobject.h b/Include/cellobject.h index fd186e28c2..1036420313 100644 --- a/Include/cellobject.h +++ b/Include/cellobject.h @@ -13,7 +13,7 @@ typedef struct { PyAPI_DATA(PyTypeObject) PyCell_Type; -#define PyCell_Check(op) ((op)->ob_type == &PyCell_Type) +#define PyCell_Check(op) (Py_Type(op) == &PyCell_Type) PyAPI_FUNC(PyObject *) PyCell_New(PyObject *); PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *); |