summaryrefslogtreecommitdiff
path: root/Mac/Modules/ibcarbon/_IBCarbon.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/ibcarbon/_IBCarbon.c')
-rw-r--r--Mac/Modules/ibcarbon/_IBCarbon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/ibcarbon/_IBCarbon.c b/Mac/Modules/ibcarbon/_IBCarbon.c
index 02c50feca7..d2eff0276d 100644
--- a/Mac/Modules/ibcarbon/_IBCarbon.c
+++ b/Mac/Modules/ibcarbon/_IBCarbon.c
@@ -26,7 +26,7 @@ static PyObject *IBCarbon_Error;
PyTypeObject IBNibRef_Type;
-#define IBNibRefObj_Check(x) ((x)->ob_type == &IBNibRef_Type)
+#define IBNibRefObj_Check(x) ((x)->ob_type == &IBNibRef_Type || PyObject_TypeCheck((x), &IBNibRef_Type))
typedef struct IBNibRefObject {
PyObject_HEAD