]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed format specifier warning in build_tree call to Tracev.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Sat, 31 Oct 2020 01:47:10 +0000 (18:47 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 2 Nov 2020 15:41:05 +0000 (16:41 +0100)
  Format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')

trees.c

diff --git a/trees.c b/trees.c
index 593d77390f29c2000284cbc579b0be8a6ed8049d..a25cd4e76c77caaeaa521838c73b012c9986900f 100644 (file)
--- a/trees.c
+++ b/trees.c
@@ -662,7 +662,7 @@ void Z_INTERNAL zng_tr_flush_block(deflate_state *s, char *buf, uint32_t stored_
         opt_lenb = (s->opt_len+3+7) >> 3;
         static_lenb = (s->static_len+3+7) >> 3;
 
-        Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
+        Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %u lit %u ",
                 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
                 s->sym_next / 3));