From 4d7fc3c5ac0d09a83a02cc35788ea1b806866ad9 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 23 Mar 2013 15:35:24 -0500 Subject: undo PyInt -> PyLong change; that was wrong --- Modules/posixmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 00decc3..a06ebd1 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -357,7 +357,7 @@ _PyInt_FromUid(uid_t uid) { if (uid <= LONG_MAX) return PyInt_FromLong(uid); - return PyInt_FromUnsignedLong(uid); + return PyLong_FromUnsignedLong(uid); } PyObject * @@ -365,7 +365,7 @@ _PyInt_FromGid(gid_t gid) { if (gid <= LONG_MAX) return PyInt_FromLong(gid); - return PyInt_FromUnsignedLong(gid); + return PyLong_FromUnsignedLong(gid); } int -- cgit v0.12