mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.
This commit is contained in:
parent
6eeaddc341
commit
5de250e823
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue