summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-04 19:58:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-04 19:58:13 (GMT)
commit4281cef2057e24384a1d59b6bcf9e9161fde26e8 (patch)
treee0fd65002e09aa925f4a4594586e2fb471775e5e /Python/sysmodule.c
parent9589ee276a7c863b137ee925e9e50745ef594b98 (diff)
downloadcpython-4281cef2057e24384a1d59b6bcf9e9161fde26e8.zip
cpython-4281cef2057e24384a1d59b6bcf9e9161fde26e8.tar.gz
cpython-4281cef2057e24384a1d59b6bcf9e9161fde26e8.tar.bz2
Use Py_ssize_t for _Py_RefTotal.
I tried to handle Win64 properly, but please review.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 3219b1c..a33ac26 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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 */