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

Cleanup a handful of PVS Studio warnings #2627

Merged
merged 4 commits into from Jun 21, 2023
Merged

Cleanup a handful of PVS Studio warnings #2627

merged 4 commits into from Jun 21, 2023

Conversation

kcgen
Copy link
Member

@kcgen kcgen commented Jun 21, 2023

This mops up some issues to get PVS Studio pass against in main

 - Decreased performance. Consider creating a pointer to avoid
   using the expression repeatedly.
@kcgen kcgen added the cleanup Non-functional changes that simplify, improve maintainability, or squash warnings label Jun 21, 2023
@kcgen kcgen self-assigned this Jun 21, 2023
Suspicious sequence of types castings: memsize -> 32-bit
integer -> memsize
Move a constant value to the point-of-use.
@kcgen kcgen merged commit 9481a92 into main Jun 21, 2023
59 checks passed
@kcgen kcgen deleted the kc/pvs-warnings-1 branch June 21, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Non-functional changes that simplify, improve maintainability, or squash warnings
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant