mirror of
https://github.com/google/brotli.git
synced 2026-04-06 06:03:43 +00:00
[PR #1190] Fix C4334 warnings when building with MSVC #1756
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?
Original Pull Request: https://github.com/google/brotli/pull/1190
State: closed
Merged: Yes
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).