diff Objects/intobject.c @ 45815:8a3fa86c30a6 legacy-trunk

Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.
author Jeffrey Yasskin <jyasskin@gmail.com>
date Tue, 18 Mar 2008 01:09:59 +0000
parents b7231bf6bfb7
children 6f131d2c3628
line wrap: on
line diff
--- a/Objects/intobject.c	Tue Mar 18 01:00:07 2008 +0000
+++ b/Objects/intobject.c	Tue Mar 18 01:09:59 2008 +0000
@@ -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.