From: Jeffrey Yasskin Date: Tue, 18 Mar 2008 01:09:59 +0000 (+0000) Subject: Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster. X-Git-Tag: v2.6a2~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5de250e823f03e45cee3558b699f9e8b4404c347;p=thirdparty%2FPython%2Fcpython.git Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster. --- diff --git a/Objects/intobject.c b/Objects/intobject.c index 65c1c23dac0a..9158aa4db9ee 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -1038,7 +1038,7 @@ int_getnewargs(PyIntObject *v) 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. diff --git a/Objects/longobject.c b/Objects/longobject.c index afa1b75c09d6..2e13d6141f17 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3391,7 +3391,7 @@ long_getnewargs(PyLongObject *v) static PyObject * long_getN(PyLongObject *v, void *context) { - return PyLong_FromLong((intptr_t)context); + return PyLong_FromLong((Py_intptr_t)context); } static PyObject *