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

Places parens to avoid precedence warning #84

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

trevorknight
Copy link
Contributor

Depending on platform and compiler, the line will give a warning:

error: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Werror,-Wshift-op-parentheses]

This is the right thing, but placing the parentheses makes the ordering explicit.

Depending on platform and compiler, the line will give a warning:

error: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Werror,-Wshift-op-parentheses]

This is the right thing, but placing the parentheses makes the ordering explicit.
@jwcullen jwcullen self-requested a review January 30, 2024 18:01
@jwcullen
Copy link
Collaborator

This PR just makes the order explicit. Adding these parens does not change the semantic meaning of the code. I see no harm in taking this for the next release.

@jwcullen jwcullen merged commit cb7f184 into AOMediaCodec:main Feb 8, 2024
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