From dfc9bc265cf4399d3b26d88a6fee102be10161c9 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 16 Mar 2025 09:43:08 +0800 Subject: [PATCH] Networking: silence compiler warnings --- src/common/networking/networking_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/networking/networking_common.c b/src/common/networking/networking_common.c index 2c2de07c7..45e95b401 100644 --- a/src/common/networking/networking_common.c +++ b/src/common/networking/networking_common.c @@ -43,7 +43,7 @@ static uint32_t guessGzipOutputSize(const void* data, uint32_t dataSize) if (dataSize > 18) { // Get ISIZE value from the end of file (little endian) const uint8_t* tail = (const uint8_t*)data + dataSize - 4; - uint32_t uncompressedSize = tail[0] | (tail[1] << 8) | (tail[2] << 16) | (tail[3] << 24); + uint32_t uncompressedSize = (uint32_t) tail[0] | ((uint32_t) tail[1] << 8u) | ((uint32_t) tail[2] << 16u) | ((uint32_t) tail[3] << 24u); // For valid gzip files, this value is the length of the uncompressed data modulo 2^32 if (uncompressedSize > 0) {