From: Nathan Moinvaziri Date: Mon, 14 Sep 2020 05:12:40 +0000 (-0700) Subject: Fixed match_byte casting warning in compare256_unaligned_64_static. X-Git-Tag: 1.9.9-b1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdddb86ae490468514681884fb9cf619a26bce94;p=thirdparty%2Fzlib-ng.git Fixed match_byte casting warning in compare256_unaligned_64_static. compare258.c(158,36): warning C4244: 'return': conversion from 'uint64_t' to 'uint32_t', possible loss of data --- diff --git a/compare258.c b/compare258.c index ab8c29abe..bc41638ae 100644 --- a/compare258.c +++ b/compare258.c @@ -155,7 +155,7 @@ static inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, if (diff) { uint64_t match_byte = __builtin_ctzll(diff) / 8; - return len + match_byte; + return len + (uint32_t)match_byte; } src0 += 8, src1 += 8, len += 8;