Skip to content

explicit comparison instead of relying on truthy/falsey #11

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aminya
Copy link
Member

@aminya aminya commented Jul 4, 2022

atom#87

Description of the change

This makes the comparisons of the variables explicit and type-stable. This prevents implicit conversions from different types to bool.

Verifications

  • The changes are done using clang-tidy, and manually reviewed, so they are safe to merge.
  • Tests pass

Release Notes

  • explicit comparison instead of relying on truthy/falsey

Fixes implicit conversion 'int' -> bool
To prevent implicit conversion 'int/uint' -> bool
Prevents implicit conversion of the object to bool
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.

1 participant