Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

explicit comparison instead of relying on truthy/falsey #87

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

Conversation

aminya
Copy link
Contributor

@aminya aminya commented Dec 3, 2020

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant