-
-
Couldn't load subscription status.
- Fork 452
Changed sizeof to count #972
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
Conversation
- 3k occurrences of "count" and 119 of "sizeof" - simplified "count(x) > 0" - simplified "count(x) == 0" - strict type compare to int
|
The places where we check if array is empty should be changed to !empty(). But maybe tackle it in a separate change? |
|
@tmotyl I'd prefer seperate ticket to make reviews easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me.
|
created an issue about checking emptiness #981 |
countand 119 ofsizeofcount(x) > 0count(x) == 0int