[Python-checkins] cpython (2.7): undo PyInt -> PyLong change; that was wrong

benjamin.peterson python-checkins at python.org
Sat Mar 23 21:36:07 CET 2013


http://hg.python.org/cpython/rev/cdf560632bea
changeset:   82923:cdf560632bea
branch:      2.7
parent:      82920:2aa817e0a645
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Mar 23 15:35:24 2013 -0500
summary:
  undo PyInt -> PyLong change; that was wrong

files:
  Modules/posixmodule.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -357,7 +357,7 @@
 {
     if (uid <= LONG_MAX)
         return PyInt_FromLong(uid);
-    return PyInt_FromUnsignedLong(uid);
+    return PyLong_FromUnsignedLong(uid);
 }
 
 PyObject *
@@ -365,7 +365,7 @@
 {
     if (gid <= LONG_MAX)
         return PyInt_FromLong(gid);
-    return PyInt_FromUnsignedLong(gid);
+    return PyLong_FromUnsignedLong(gid);
 }
 
 int

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list