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
This commit is contained in:
Detlef Riekenberg 2023-02-03 18:04:56 +01:00
parent b2485d6cd5
commit bdec3c5345

View file

@ -2171,7 +2171,7 @@ PUB_FUNC void tcc_print_stats(TCCState *s1, unsigned total_time)
(double)total_time/1000, (double)total_time/1000,
(unsigned)total_lines*1000/total_time, (unsigned)total_lines*1000/total_time,
(double)total_bytes/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[0],
s1->total_output[1], s1->total_output[1],
s1->total_output[2], s1->total_output[2],