Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 36836:01bc8ee3d2ff | 36837:3a3aed49b245 |
|---|---|
| 602 | 602 |
| 603 #ifdef Py_REF_DEBUG | 603 #ifdef Py_REF_DEBUG |
| 604 static PyObject * | 604 static PyObject * |
| 605 sys_gettotalrefcount(PyObject *self) | 605 sys_gettotalrefcount(PyObject *self) |
| 606 { | 606 { |
| 607 return PyInt_FromLong(_Py_RefTotal); | 607 return PyInt_FromSsize_t(_Py_RefTotal); |
| 608 } | 608 } |
| 609 | 609 |
| 610 #endif /* Py_TRACE_REFS */ | 610 #endif /* Py_TRACE_REFS */ |
| 611 | 611 |
| 612 PyDoc_STRVAR(getrefcount_doc, | 612 PyDoc_STRVAR(getrefcount_doc, |
