From 09bde0415405d57524ea7cd6f15023e4e13ed193 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 24 Feb 2008 12:26:16 +0000 Subject: Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal. --- Objects/dictobject.c | 6 ++++-- Objects/listobject.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index eaa490e..1246785 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))); } diff --git a/Objects/listobject.c b/Objects/listobject.c index d6a99b1..9a8b64e 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -72,8 +72,10 @@ static size_t count_reuse = 0; static void show_alloc(void) { - fprintf(stderr, "List allocations: %zd\n", count_alloc); - fprintf(stderr, "List reuse through freelist: %zd\n", count_reuse); + fprintf(stderr, "List allocations: %" PY_FORMAT_SIZE_T "d\n", + count_alloc); + fprintf(stderr, "List 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))); } -- cgit v0.12