[Python-checkins] r43242 - python/trunk/Objects/object.c
tim.peters
python-checkins at python.org
Thu Mar 23 06:38:33 CET 2006
Author: tim.peters
Date: Thu Mar 23 06:38:33 2006
New Revision: 43242
Modified:
python/trunk/Objects/object.c
Log:
_Py_NegativeRefcount(): print the full value of ob_refcnt.
Modified: python/trunk/Objects/object.c
==============================================================================
--- python/trunk/Objects/object.c (original)
+++ python/trunk/Objects/object.c Thu Mar 23 06:38:33 2006
@@ -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);
}
More information about the Python-checkins
mailing list