diff options
Diffstat (limited to 'Mac/Modules/cg/_CGmodule.c')
-rwxr-xr-x | Mac/Modules/cg/_CGmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/cg/_CGmodule.c b/Mac/Modules/cg/_CGmodule.c index 5642164..fbafc6c 100755 --- a/Mac/Modules/cg/_CGmodule.c +++ b/Mac/Modules/cg/_CGmodule.c @@ -212,7 +212,7 @@ static PyObject *CG_Error; PyTypeObject CGContextRef_Type; -#define CGContextRefObj_Check(x) ((x)->ob_type == &CGContextRef_Type) +#define CGContextRefObj_Check(x) ((x)->ob_type == &CGContextRef_Type || PyObject_TypeCheck((x), &CGContextRef_Type)) typedef struct CGContextRefObject { PyObject_HEAD |