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

Refactor uncompress() loop in php_handle_swc() #17574

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jan 25, 2025

As is, MSVC raises C4334[1] to hint at a potential code issue. We could solve this with a cast, but actually the code is unclear as is because factor is not the factor, but rather the factor`s power. Thus we refactor the loop variant, and also fix the comment.

[1] https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4334

As is, MSVC raises C4334[1] to hint at a potential code issue.  We
could solve this with a cast, but actually the code is unclear as is
because `factor` is not the factor, but rather the factor`s power.
Thus we refactor the loop variant, and also fix the comment.

[1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4334>
@cmb69 cmb69 marked this pull request as ready for review January 26, 2025 11:54
@cmb69 cmb69 requested a review from bukka as a code owner January 26, 2025 11:54
@cmb69 cmb69 merged commit ed92da8 into php:master Feb 1, 2025
9 checks passed
@cmb69 cmb69 deleted the cmb/swc-uncompress branch February 1, 2025 12:18
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.

1 participant