]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed signed warnings in match_p.h on arm. #430
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Mon, 7 Oct 2019 02:01:31 +0000 (19:01 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 7 Oct 2019 07:44:56 +0000 (09:44 +0200)
match_p.h

index 258e73e052ad88770ac5c02f9a3010f1d8ecc601..776d6cec3500d08b076b2fb36de32075259bf6e8 100644 (file)
--- 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,