mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
_Py_NegativeRefcount(): print the full value of ob_refcnt.
This commit is contained in:
parent
d6316a9fea
commit
4d073bb9a1
1 changed files with 2 additions and 3 deletions
|
@ -138,10 +138,9 @@ _Py_NegativeRefcount(const char *fname, int lineno, PyObject *op)
|
|||
{
|
||||
char buf[300];
|
||||
|
||||
/* XXX(twouters) cast refcount to long until %zd is universally
|
||||
available */
|
||||
PyOS_snprintf(buf, sizeof(buf),
|
||||
"%s:%i object at %p has negative ref count %ld",
|
||||
"%s:%i object at %p has negative ref count "
|
||||
"%" PY_FORMAT_SIZE_T "d",
|
||||
fname, lineno, op, (long)op->ob_refcnt);
|
||||
Py_FatalError(buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue