Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix C4334 warnings when building with MSVC #1190

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

jkoritzinsky
Copy link
Contributor

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).

@jkoritzinsky jkoritzinsky changed the title Fix C4224 warnings when building with MSVC Fix C4334 warnings when building with MSVC Aug 27, 2024
@copybara-service copybara-service bot merged commit f25050c into google:master Nov 15, 2024
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants