diff options
Diffstat (limited to 'Mac/Modules/qdoffs/_Qdoffsmodule.c')
-rw-r--r-- | Mac/Modules/qdoffs/_Qdoffsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/qdoffs/_Qdoffsmodule.c b/Mac/Modules/qdoffs/_Qdoffsmodule.c index 3f5dd04302..ea3d0155db 100644 --- a/Mac/Modules/qdoffs/_Qdoffsmodule.c +++ b/Mac/Modules/qdoffs/_Qdoffsmodule.c @@ -43,7 +43,7 @@ static PyObject *Qdoffs_Error; PyTypeObject GWorld_Type; -#define GWorldObj_Check(x) ((x)->ob_type == &GWorld_Type) +#define GWorldObj_Check(x) ((x)->ob_type == &GWorld_Type || PyObject_TypeCheck((x), &GWorld_Type)) typedef struct GWorldObject { PyObject_HEAD |