mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
This commit is contained in:
parent
1a3284ed69
commit
217cfd1c86
123 changed files with 888 additions and 885 deletions
|
|
@ -70,7 +70,7 @@ mkgrent(struct group *p)
|
|||
Py_INCREF(Py_None);
|
||||
}
|
||||
#endif
|
||||
SET(setIndex++, PyInt_FromLong((long) p->gr_gid));
|
||||
SET(setIndex++, PyLong_FromLong((long) p->gr_gid));
|
||||
SET(setIndex++, w);
|
||||
#undef SET
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ grp_getgrgid(PyObject *self, PyObject *pyo_id)
|
|||
py_int_id = PyNumber_Int(pyo_id);
|
||||
if (!py_int_id)
|
||||
return NULL;
|
||||
gid = PyInt_AS_LONG(py_int_id);
|
||||
gid = PyLong_AS_LONG(py_int_id);
|
||||
Py_DECREF(py_int_id);
|
||||
|
||||
if ((p = getgrgid(gid)) == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue