diff options
Diffstat (limited to 'Mac/Modules/cm/_Cmmodule.c')
-rw-r--r-- | Mac/Modules/cm/_Cmmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/cm/_Cmmodule.c b/Mac/Modules/cm/_Cmmodule.c index e21e6b0..1eaa577 100644 --- a/Mac/Modules/cm/_Cmmodule.c +++ b/Mac/Modules/cm/_Cmmodule.c @@ -69,7 +69,7 @@ static PyObject *Cm_Error; PyTypeObject ComponentInstance_Type; -#define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type) +#define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type || PyObject_TypeCheck((x), &ComponentInstance_Type)) typedef struct ComponentInstanceObject { PyObject_HEAD @@ -335,7 +335,7 @@ PyTypeObject ComponentInstance_Type = { PyTypeObject Component_Type; -#define CmpObj_Check(x) ((x)->ob_type == &Component_Type) +#define CmpObj_Check(x) ((x)->ob_type == &Component_Type || PyObject_TypeCheck((x), &Component_Type)) typedef struct ComponentObject { PyObject_HEAD |