]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.
authorJeffrey Yasskin <jyasskin@gmail.com>
Tue, 18 Mar 2008 01:09:59 +0000 (01:09 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Tue, 18 Mar 2008 01:09:59 +0000 (01:09 +0000)
Objects/intobject.c
Objects/longobject.c

index 65c1c23dac0a5029497f321a27199ba061173607..9158aa4db9eef9cb2c2b2989b941760bf2838849 100644 (file)
@@ -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.
index afa1b75c09d6ecf512386c0380661c183f9a84ba..2e13d6141f17f83164b345a30ec8a6e006fab054 100644 (file)
@@ -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 *