mirror of
https://github.com/google/brotli.git
synced 2026-09-23 15:15:35 +00:00
[PR #1190] [MERGED] Fix C4334 warnings when building with MSVC #1753
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/1190
Author: @jkoritzinsky
Created: 8/27/2024
Status: ✅ Merged
Merged: 11/15/2024
Merged by: @copybara-service[bot]
Base:
master← Head:warnings-cleanup📝 Commits (1)
aa54821Fix C4224 warnings when building with MSVC📊 Changes
4 files changed (+11 additions, -11 deletions)
View changed files
📝
c/dec/decode.c(+3 -3)📝
c/enc/compound_dictionary.c(+2 -2)📝
c/enc/encode.c(+2 -2)📝
c/enc/hash.h(+4 -4)📄 Description
Currently, brotli emits C4334 warnings about implicit widening of shift results when building Brotli with MSVC for 64-bit targets with at least warning level 3 enabled.
This PR addresses the warnings by adding casts where necessary to widen before shifting (which seemed like the correct solution for all of the cases).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.