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

Redundant parentheses #2

Open
AgranatMarkit opened this issue Feb 6, 2023 · 1 comment
Open

Redundant parentheses #2

AgranatMarkit opened this issue Feb 6, 2023 · 1 comment

Comments

@AgranatMarkit
Copy link

return ((value + alignment - 1) / alignment) * alignment

Do we really need the parentheses around division part?
The division has the same precedence as multiplication, so order is the same in cases of with/without brackets.

@AgranatMarkit
Copy link
Author

i mean
return (value + alignment - 1) / alignment * alignment

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

No branches or pull requests

1 participant