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

Add an assert for truthy-preserving bool conversions #801

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

geky
Copy link
Member

@geky geky commented Apr 18, 2023

This has caught enough people that an explicit assert is warranted.

How littlefs, a c99 project, should be integrated with c89 projects is still an open question, but no one deserves to debug this sort of undetected casting issue.

Found by @johnernberg and @XinStellaris. This an alternative to #772 and #677.

This has caught enough people that an explicit assert is warranted.
How littlefs, a c99 project, should be integrated with c89 projects
is still an open question, but no one deserves to debug this sort of
undetected casting issue.

Found by johnernberg and XinStellaris
@geky geky changed the title Added an assert for truthy-preserving bool conversions Add an assert for truthy-preserving bool conversions Apr 18, 2023
@geky geky added lint enhancement next minor needs ci ci is probably broken and removed lint labels Apr 18, 2023
@geky geky added this to the v2.6 milestone Apr 18, 2023
@geky geky removed the needs ci ci is probably broken label Apr 18, 2023
Copy link

@johnernberg johnernberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this.

@geky geky changed the base branch from master to devel April 26, 2023 06:05
@geky geky merged commit 50b394c into devel Apr 26, 2023
@geky geky mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants