mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use Py_ssize_t for _Py_RefTotal.
I tried to handle Win64 properly, but please review.
This commit is contained in:
parent
9589ee276a
commit
4281cef205
3 changed files with 14 additions and 8 deletions
|
@ -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++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue