summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2008-03-18 01:09:59 (GMT)
committerJeffrey Yasskin <jyasskin@gmail.com>2008-03-18 01:09:59 (GMT)
commit5de250e823f03e45cee3558b699f9e8b4404c347 (patch)
tree5bbb0531d83fd6785e47cdbcd20ada279cc9073b /Objects
parent6eeaddc341ec3ac03070c47cf9095a6c82d3a395 (diff)
downloadcpython-5de250e823f03e45cee3558b699f9e8b4404c347.zip
cpython-5de250e823f03e45cee3558b699f9e8b4404c347.tar.gz
cpython-5de250e823f03e45cee3558b699f9e8b4404c347.tar.bz2
Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c2
-rw-r--r--Objects/longobject.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 65c1c23..9158aa4 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 afa1b75..2e13d61 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 *