summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
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 */