]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
fix warning with configure --debug
authorSebastian Pop <s.pop@samsung.com>
Thu, 17 Jan 2019 16:32:25 +0000 (10:32 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 21 Jan 2019 08:24:36 +0000 (09:24 +0100)
arch/x86/deflate_quick.c:184:21: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]

arch/x86/deflate_quick.c

index 789ef323ca9fdfaacb8cbe26817e6686803065af..31118a46f3b60aaf75c92c490f637f5f7aa0d039 100644 (file)
@@ -181,7 +181,7 @@ static void static_emit_tree(deflate_state *const s, const int flush) {
 
 static void static_emit_end_block(deflate_state *const s, int last) {
     send_code(s, END_BLOCK, static_ltree);
-    Tracev((stderr, "\n+++ Emit End Block: Last: %u Pending: %u Total Out: %u\n", last, s->pending, s->strm->total_out));
+    Tracev((stderr, "\n+++ Emit End Block: Last: %u Pending: %u Total Out: %zu\n", last, s->pending, s->strm->total_out));
 
     if (last)
         bi_windup(s);