Kaydet (Commit) 5de250e8 authored tarafından Jeffrey Yasskin's avatar Jeffrey Yasskin

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

üst 6eeaddc3
...@@ -1038,7 +1038,7 @@ int_getnewargs(PyIntObject *v) ...@@ -1038,7 +1038,7 @@ int_getnewargs(PyIntObject *v)
static PyObject * static PyObject *
int_getN(PyIntObject *v, void *context) { 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. /* Convert an integer to the given base. Returns a string.
......
...@@ -3391,7 +3391,7 @@ long_getnewargs(PyLongObject *v) ...@@ -3391,7 +3391,7 @@ long_getnewargs(PyLongObject *v)
static PyObject * static PyObject *
long_getN(PyLongObject *v, void *context) { long_getN(PyLongObject *v, void *context) {
return PyLong_FromLong((intptr_t)context); return PyLong_FromLong((Py_intptr_t)context);
} }
static PyObject * static PyObject *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment