From: Milan Ševčík Date: Mon, 18 Jul 2016 20:27:59 +0000 (+0200) Subject: Make code an int in compress_block() X-Git-Tag: 1.9.9-b1~660^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c295c640913e4475b6b95081fd141cd6d2f14200;p=thirdparty%2Fzlib-ng.git Make code an int in compress_block() send_code() expects int instead of unsigned. Other procedures do pass int. --- diff --git a/trees.c b/trees.c index f79564230..6a7ba93d2 100644 --- 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) {