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

make variant index casts more explicit #635

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Conversation

DmitriyMusatkin
Copy link
Contributor

@DmitriyMusatkin DmitriyMusatkin commented Jul 2, 2024

Issue #, if available:

Description of changes:
result of short + short is always an int (one of those weird c++ standard quirks), so when we write the result back to a short field some compilers might raise a warning for it if -Wconversion is on (which it is typically not, since its not part of -Wall, etc...). So be more explicit casting back

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@DmitriyMusatkin DmitriyMusatkin marked this pull request as ready for review July 3, 2024 16:21
@DmitriyMusatkin DmitriyMusatkin merged commit fce6e7b into main Jul 3, 2024
59 checks passed
@DmitriyMusatkin DmitriyMusatkin deleted the variant_warning branch July 3, 2024 17:27
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.

3 participants