]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Make code an int in compress_block()
authorMilan Ševčík <majlen@civ.zcu.cz>
Mon, 18 Jul 2016 20:27:59 +0000 (22:27 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 17 Aug 2017 09:59:27 +0000 (11:59 +0200)
send_code() expects int instead of unsigned. Other procedures do pass
int.

trees.c

diff --git a/trees.c b/trees.c
index f79564230cadbbcfb99bbc4069c2a8db4a35f926..6a7ba93d258d47ff34d8c1af757fd270ef8f176e 100644 (file)
--- a/trees.c
+++ b/trees.c
@@ -977,7 +977,7 @@ static void compress_block(deflate_state *s, const ct_data *ltree, const ct_data
     unsigned dist;      /* distance of matched string */
     int lc;             /* match length or unmatched char (if dist == 0) */
     unsigned lx = 0;    /* running index in l_buf */
-    unsigned code;      /* the code to send */
+    int code;           /* the code to send */
     int extra;          /* number of extra bits to send */
 
     if (s->last_lit != 0) {