%zu for printing type size_t

Former-commit-id: 84af829053eaf70439aaf0b7fdebfe2d9d2f3b6f
This commit is contained in:
christianEQ 2021-08-12 19:36:23 +00:00 committed by John Sully
parent c48ae9ace7
commit e0ff0ee45c

View File

@ -247,8 +247,8 @@ public:
/* Generate human readable stats. */ /* Generate human readable stats. */
l += snprintf(buf+l,bufsize-l, l += snprintf(buf+l,bufsize-l,
"semiordered set stats:\n" "semiordered set stats:\n"
" table size: %ld\n" " table size: %zu\n"
" number of slots: %ld\n" " number of slots: %zu\n"
" used slots: %ld\n" " used slots: %ld\n"
" max chain length: %ld\n" " max chain length: %ld\n"
" avg chain length (counted): %.02f\n" " avg chain length (counted): %.02f\n"