From bdec3c534583066cf097543f265ad620a8baa30d Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Fri, 3 Feb 2023 18:04:56 +0100 Subject: [PATCH] Use unsigned int to count sizes for -bench (YARPgen) (part 2) I have a testfile created by YARPGen (seed=9), which displayed a negative bss size without this patch. * tcc needs also a bigger VSTACK_SIZE (i used 512) -- bye bye ... Detlef --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtcc.c b/libtcc.c index 1d9b743f..d5a33d56 100644 --- a/libtcc.c +++ b/libtcc.c @@ -2171,7 +2171,7 @@ PUB_FUNC void tcc_print_stats(TCCState *s1, unsigned total_time) (double)total_time/1000, (unsigned)total_lines*1000/total_time, (double)total_bytes/1000/total_time); - fprintf(stderr, "* text %d, data.rw %d, data.ro %d, bss %d bytes\n", + fprintf(stderr, "* text %u, data.rw %u, data.ro %u, bss %u bytes\n", s1->total_output[0], s1->total_output[1], s1->total_output[2],