From: Nathan Moinvaziri Date: Mon, 7 Oct 2019 02:01:31 +0000 (-0700) Subject: Fixed signed warnings in match_p.h on arm. #430 X-Git-Tag: 1.9.9-b1~411 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaace15fdff834b6772fc7dc89d747c36c53c81b;p=thirdparty%2Fzlib-ng.git Fixed signed warnings in match_p.h on arm. #430 --- diff --git a/match_p.h b/match_p.h index 258e73e0..776d6cec 100644 --- a/match_p.h +++ b/match_p.h @@ -193,7 +193,7 @@ static inline unsigned longest_match(deflate_state *const s, IPos cur_match) { * Do not look for matches beyond the end of the input. This is * necessary to make deflate deterministic */ - nice_match = (unsigned int)s->nice_match > s->lookahead ? s->lookahead : s->nice_match; + nice_match = (unsigned int)s->nice_match > s->lookahead ? s->lookahead : (unsigned int)s->nice_match; /* * Stop when cur_match becomes <= limit. To simplify the code,