mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use Py_ssize_t for _Py_RefTotal.
I tried to handle Win64 properly, but please review.
This commit is contained in:
parent
9589ee276a
commit
4281cef205
3 changed files with 14 additions and 8 deletions
|
@ -604,7 +604,7 @@ sys_getrefcount(PyObject *self, PyObject *arg)
|
|||
static PyObject *
|
||||
sys_gettotalrefcount(PyObject *self)
|
||||
{
|
||||
return PyInt_FromLong(_Py_RefTotal);
|
||||
return PyInt_FromSsize_t(_Py_RefTotal);
|
||||
}
|
||||
|
||||
#endif /* Py_TRACE_REFS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue