diff Python/sysmodule.c @ 36837:3a3aed49b245 legacy-trunk

Use Py_ssize_t for _Py_RefTotal. I tried to handle Win64 properly, but please review.
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 04 Mar 2006 19:58:13 +0000
parents 7a30dc2af329
children 9eb24f92a784
line wrap: on
line diff
--- a/Python/sysmodule.c	Sat Mar 04 19:01:22 2006 +0000
+++ b/Python/sysmodule.c	Sat Mar 04 19:58:13 2006 +0000
@@ -604,7 +604,7 @@
 static PyObject *
 sys_gettotalrefcount(PyObject *self)
 {
-	return PyInt_FromLong(_Py_RefTotal);
+	return PyInt_FromSsize_t(_Py_RefTotal);
 }
 
 #endif /* Py_TRACE_REFS */