diff options
Diffstat (limited to 'Mac/Modules/qd/_Qdmodule.c')
-rw-r--r-- | Mac/Modules/qd/_Qdmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/qd/_Qdmodule.c b/Mac/Modules/qd/_Qdmodule.c index 0db5299..c1690c1 100644 --- a/Mac/Modules/qd/_Qdmodule.c +++ b/Mac/Modules/qd/_Qdmodule.c @@ -145,7 +145,7 @@ static PyObject *Qd_Error; PyTypeObject GrafPort_Type; -#define GrafObj_Check(x) ((x)->ob_type == &GrafPort_Type) +#define GrafObj_Check(x) ((x)->ob_type == &GrafPort_Type || PyObject_TypeCheck((x), &GrafPort_Type)) typedef struct GrafPortObject { PyObject_HEAD @@ -1137,7 +1137,7 @@ PyTypeObject GrafPort_Type = { PyTypeObject BitMap_Type; -#define BMObj_Check(x) ((x)->ob_type == &BitMap_Type) +#define BMObj_Check(x) ((x)->ob_type == &BitMap_Type || PyObject_TypeCheck((x), &BitMap_Type)) typedef struct BitMapObject { PyObject_HEAD |