]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
send_bits_trace: placate -Wformat
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 21 Jul 2020 11:18:10 +0000 (13:18 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 23 Aug 2020 08:07:07 +0000 (10:07 +0200)
commit1d2504ddc4894786fdf61d41a9bfa435cd8b1935
treee2262444e49b3d31cc148e5ac4eed7444f8ac7ab
parent24c442c606d9121da64b25693c9bb1a898b3553f
send_bits_trace: placate -Wformat

value, which can be uint64_t, is printed using %llx, which, strictly
speaking, is not correct, and triggers -Wformat.

Since we don't really know what type value can have (send_bits_trace
is a macro), don't use <inttypes.h>, but rather cast it to long long.
Also cast length to int in order to prevent similar issues in the
future.
trees_emit.h