Skip to content

Conversation

@ArtifactForms
Copy link
Owner

Fixes https://github.com/ArtifactForms/MeshLibCore/security/code-scanning/2

To fix the problem, we need to ensure that the type of the left-hand side of the compound assignment statement is at least as wide as the type of the right-hand side. In this case, we should change the type of y from int to float to match the type of g.getTextSize(). This will prevent any implicit narrowing conversion and preserve the precision of the calculations.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…und assignment

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ArtifactForms ArtifactForms marked this pull request as ready for review December 6, 2024 23:16
@ArtifactForms ArtifactForms merged commit 1c10689 into master Dec 6, 2024
4 checks passed
@ArtifactForms ArtifactForms deleted the alert-autofix-2 branch December 6, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants