Skip to content

Commit dfc9bc2

Browse files
committed
Networking: silence compiler warnings
1 parent 2ce511c commit dfc9bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/networking/networking_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static uint32_t guessGzipOutputSize(const void* data, uint32_t dataSize)
4343
if (dataSize > 18) {
4444
// Get ISIZE value from the end of file (little endian)
4545
const uint8_t* tail = (const uint8_t*)data + dataSize - 4;
46-
uint32_t uncompressedSize = tail[0] | (tail[1] << 8) | (tail[2] << 16) | (tail[3] << 24);
46+
uint32_t uncompressedSize = (uint32_t) tail[0] | ((uint32_t) tail[1] << 8u) | ((uint32_t) tail[2] << 16u) | ((uint32_t) tail[3] << 24u);
4747

4848
// For valid gzip files, this value is the length of the uncompressed data modulo 2^32
4949
if (uncompressedSize > 0) {

0 commit comments

Comments
 (0)