]> granicus.if.org Git - python/commitdiff
Heh -- used the right format for a refcount, but forgot
authorTim Peters <tim.peters@gmail.com>
Thu, 23 Mar 2006 05:41:24 +0000 (05:41 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 23 Mar 2006 05:41:24 +0000 (05:41 +0000)
to stop truncating it.

Objects/object.c

index e598b69995993c45578084a7da0c138b4394feb5..3404c35a3255b3f1919d801e3ede319d78718918 100644 (file)
@@ -141,7 +141,7 @@ _Py_NegativeRefcount(const char *fname, int lineno, PyObject *op)
        PyOS_snprintf(buf, sizeof(buf),
                      "%s:%i object at %p has negative ref count "
                      "%" PY_FORMAT_SIZE_T "d",
-                     fname, lineno, op, (long)op->ob_refcnt);
+                     fname, lineno, op, op->ob_refcnt);
        Py_FatalError(buf);
 }