diff options
Diffstat (limited to 'Mac/Modules/drag/_Dragmodule.c')
-rw-r--r-- | Mac/Modules/drag/_Dragmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/drag/_Dragmodule.c b/Mac/Modules/drag/_Dragmodule.c index e628b83..1a9406f 100644 --- a/Mac/Modules/drag/_Dragmodule.c +++ b/Mac/Modules/drag/_Dragmodule.c @@ -49,7 +49,7 @@ static PyObject *Drag_Error; PyTypeObject DragObj_Type; -#define DragObj_Check(x) ((x)->ob_type == &DragObj_Type) +#define DragObj_Check(x) ((x)->ob_type == &DragObj_Type || PyObject_TypeCheck((x), &DragObj_Type)) typedef struct DragObjObject { PyObject_HEAD |