[Python-checkins] r61472 - python/trunk/Objects/intobject.c python/trunk/Objects/longobject.c

jeffrey.yasskin python-checkins at python.org
Tue Mar 18 02:10:00 CET 2008


Author: jeffrey.yasskin
Date: Tue Mar 18 02:09:59 2008
New Revision: 61472

Modified:
   python/trunk/Objects/intobject.c
   python/trunk/Objects/longobject.c
Log:
Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.


Modified: python/trunk/Objects/intobject.c
==============================================================================
--- python/trunk/Objects/intobject.c	(original)
+++ python/trunk/Objects/intobject.c	Tue Mar 18 02:09:59 2008
@@ -1038,7 +1038,7 @@
 
 static PyObject *
 int_getN(PyIntObject *v, void *context) {
-	return PyInt_FromLong((intptr_t)context);
+	return PyInt_FromLong((Py_intptr_t)context);
 }
 
 /* Convert an integer to the given base.  Returns a string.

Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c	(original)
+++ python/trunk/Objects/longobject.c	Tue Mar 18 02:09:59 2008
@@ -3391,7 +3391,7 @@
 
 static PyObject *
 long_getN(PyLongObject *v, void *context) {
-	return PyLong_FromLong((intptr_t)context);
+	return PyLong_FromLong((Py_intptr_t)context);
 }
 
 static PyObject *


More information about the Python-checkins mailing list