From 3de6c30bb4a84fab477a76013feaf318f94b7e18 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Mon, 5 Aug 2024 08:59:31 -0700 Subject: [PATCH] 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 --- arch/generic/crc32_braid_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/generic/crc32_braid_c.c b/arch/generic/crc32_braid_c.c index 7d8028f6..e94d91a7 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; -- 2.47.2