Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
diff --git a/Mac/Modules/cf/pycfbridge.c b/Mac/Modules/cf/pycfbridge.c
index 06700b3..eb476ed 100644
--- a/Mac/Modules/cf/pycfbridge.c
+++ b/Mac/Modules/cf/pycfbridge.c
@@ -114,7 +114,7 @@
long l;
if (!CFNumberGetValue(src, kCFNumberLongType, &l))
/* XXXX Out of range! */;
- return PyInt_FromLong(l);
+ return PyLong_FromLong(l);
}
}
/* XXXX Should return as CFTypeRef, really... */
@@ -258,8 +258,8 @@
*dst = kCFBooleanFalse;
return 1;
}
- if (PyInt_Check(src)) {
- long v = PyInt_AsLong(src);
+ if (PyLong_Check(src)) {
+ long v = PyLong_AsLong(src);
*dst = CFNumberCreate(NULL, kCFNumberLongType, &v);
return 1;
}