Skip to content

Commit e8905b8

Browse files
author
jeffrey.yasskin
committed
Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.
git-svn-id: http://svn.python.org/projects/python/trunk@61472 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent f8b0472 commit e8905b8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/intobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ int_getnewargs(PyIntObject *v)
10381038

10391039
static PyObject *
10401040
int_getN(PyIntObject *v, void *context) {
1041-
return PyInt_FromLong((intptr_t)context);
1041+
return PyInt_FromLong((Py_intptr_t)context);
10421042
}
10431043

10441044
/* Convert an integer to the given base. Returns a string.

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,7 @@ long_getnewargs(PyLongObject *v)
33913391

33923392
static PyObject *
33933393
long_getN(PyLongObject *v, void *context) {
3394-
return PyLong_FromLong((intptr_t)context);
3394+
return PyLong_FromLong((Py_intptr_t)context);
33953395
}
33963396

33973397
static PyObject *

0 commit comments

Comments
 (0)