From: Nathan Moinvaziri Date: Mon, 5 Aug 2024 15:59:31 +0000 (-0700) Subject: Silence possible loss of data warning in crc32_braid ZSWAPWORD call X-Git-Tag: 2.2.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3de6c30bb4a84fab477a76013feaf318f94b7e18;p=thirdparty%2Fzlib-ng.git Silence possible loss of data warning in crc32_braid ZSWAPWORD call Warning C4244 '=': conversion from 'z_word_t' to 'uint32_t', possible loss of data zlib crc32_braid_c.c 195 --- diff --git a/arch/generic/crc32_braid_c.c b/arch/generic/crc32_braid_c.c index 7d8028f6d..e94d91a7a 100644 --- a/arch/generic/crc32_braid_c.c +++ b/arch/generic/crc32_braid_c.c @@ -192,7 +192,7 @@ Z_INTERNAL uint32_t PREFIX(crc32_braid)(uint32_t crc, const uint8_t *buf, size_t #endif #endif words += N; - c = ZSWAPWORD(comb); + c = (uint32_t)ZSWAPWORD(comb); /* Update the pointer to the remaining bytes to process. */ buf = (const unsigned char *)words;