Skip to content

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