summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r--Objects/intobject.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index b0876ae..d7a64be 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -1220,9 +1220,14 @@ PyInt_Fini(void)
i < N_INTOBJECTS;
i++, p++) {
if (PyInt_CheckExact(p) && p->ob_refcnt != 0)
+ /* XXX(twouters) cast refcount to
+ long until %zd is universally
+ available
+ */
fprintf(stderr,
- "# <int at %p, refcnt=%d, val=%ld>\n",
- p, p->ob_refcnt, p->ob_ival);
+ "# <int at %p, refcnt=%ld, val=%ld>\n",
+ p, (long)p->ob_refcnt,
+ p->ob_ival);
}
list = list->next;
}