From 10c5d61187badae1666200c32584fa76050bb031 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 10 Nov 2020 14:14:08 -0500 Subject: [PATCH] work around glibc bug in mallinfo test --- test/mallinfo.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/mallinfo.c b/test/mallinfo.c index bc452721..e5df5a80 100644 --- a/test/mallinfo.c +++ b/test/mallinfo.c @@ -7,16 +7,16 @@ static void print_mallinfo(void) { struct mallinfo info = mallinfo(); printf("mallinfo:\n"); - printf("arena: %zu\n", info.arena); - printf("ordblks: %zu\n", info.ordblks); - printf("smblks: %zu\n", info.smblks); - printf("hblks: %zu\n", info.hblks); - printf("hblkhd: %zu\n", info.hblkhd); - printf("usmblks: %zu\n", info.usmblks); - printf("fsmblks: %zu\n", info.fsmblks); - printf("uordblks: %zu\n", info.uordblks); - printf("fordblks: %zu\n", info.fordblks); - printf("keepcost: %zu\n", info.keepcost); + printf("arena: %zu\n", (size_t)info.arena); + printf("ordblks: %zu\n", (size_t)info.ordblks); + printf("smblks: %zu\n", (size_t)info.smblks); + printf("hblks: %zu\n", (size_t)info.hblks); + printf("hblkhd: %zu\n", (size_t)info.hblkhd); + printf("usmblks: %zu\n", (size_t)info.usmblks); + printf("fsmblks: %zu\n", (size_t)info.fsmblks); + printf("uordblks: %zu\n", (size_t)info.uordblks); + printf("fordblks: %zu\n", (size_t)info.fordblks); + printf("keepcost: %zu\n", (size_t)info.keepcost); } OPTNONE int main(void) {