Use Py_ssize_t for _Py_RefTotal.

I tried to handle Win64 properly, but please review.
This commit is contained in:
Neal Norwitz 2006-03-04 19:58:13 +00:00
parent 9589ee276a
commit 4281cef205
3 changed files with 14 additions and 8 deletions

View file

@ -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 */