_Py_NegativeRefcount(): print the full value of ob_refcnt.
diff --git a/Objects/object.c b/Objects/object.c
index 9b6a30a..e598b69 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -138,10 +138,9 @@
{
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);
}