summaryrefslogtreecommitdiff
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-02-24 12:26:16 +0000
committerChristian Heimes <christian@cheimes.de>2008-02-24 12:26:16 +0000
commit09bde0415405d57524ea7cd6f15023e4e13ed193 (patch)
tree1a5a29e65d9cd397534ca43c24515dff592c89ac /Objects/dictobject.c
parent114dd944deb53fe9961615f4e25e0af4ad14183a (diff)
downloadcpython-git-09bde0415405d57524ea7cd6f15023e4e13ed193.tar.gz
Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index eaa490e320..124678544a 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -171,8 +171,10 @@ static size_t count_reuse = 0;
static void
show_alloc(void)
{
- fprintf(stderr, "Dict allocations: %zd\n", count_alloc);
- fprintf(stderr, "Dict reuse through freelist: %zd\n", count_reuse);
+ fprintf(stderr, "Dict allocations: %" PY_FORMAT_SIZE_T "d\n",
+ count_alloc);
+ fprintf(stderr, "Dict reuse through freelist: %" PY_FORMAT_SIZE_T
+ "d\n", count_reuse);
fprintf(stderr, "%.2f%% reuse rate\n\n",
(100.0*count_reuse/(count_alloc+count_reuse)));
}