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

@ -568,7 +568,7 @@ environment the global variable trick is not safe.)
* #ifdefs (we used to do that -- it was impenetrable).
*/
#ifdef Py_REF_DEBUG
PyAPI_DATA(long) _Py_RefTotal;
PyAPI_DATA(Py_ssize_t) _Py_RefTotal;
PyAPI_FUNC(void) _Py_NegativeRefcount(const char *fname,
int lineno, PyObject *op);
#define _Py_INC_REFTOTAL _Py_RefTotal++