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

Fix missing parens in to_binary_fixed_width #1386

Conversation

charles-lunarg
Copy link
Contributor

Clang-18 reports a warning that the '>>' operator has lower precedence than '-' in the expression value >> i - 1. The fix is to wrap i - 1 with parenthesis to make it clear the intent.

Clang-18 reports a warning that the '>>' operator has lower precedence than '-'
in the expression `value >> i - 1`. The fix is to wrap `i - 1` with
parenthesis to make it clear the intent.
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 95034.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3594 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3594 passed.

@charles-lunarg charles-lunarg merged commit 0eb4058 into LunarG:dev Dec 8, 2023
@charles-lunarg charles-lunarg deleted the fix_to_string_right_bitshift_precedence branch December 8, 2023 21:03
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