Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.

This commit is contained in:
Jeffrey Yasskin 2008-03-18 01:09:59 +00:00
parent 6eeaddc341
commit 5de250e823
2 changed files with 2 additions and 2 deletions

View 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.