diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-23 05:38:33 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-23 05:38:33 (GMT) |
commit | 4d073bb9a1f72383e0ba78356a09c3799b41add6 (patch) | |
tree | 8ee6dea2ebc79b6b58b03b4305cc944bd01db299 | |
parent | d6316a9fea559ac8c87d042ee51d3cf7a3d00670 (diff) | |
download | cpython-4d073bb9a1f72383e0ba78356a09c3799b41add6.zip cpython-4d073bb9a1f72383e0ba78356a09c3799b41add6.tar.gz cpython-4d073bb9a1f72383e0ba78356a09c3799b41add6.tar.bz2 |
_Py_NegativeRefcount(): print the full value of ob_refcnt.
-rw-r--r-- | Objects/object.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ _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); } |