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

Refactor u32 to usize cast assertions #154

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

lopopolo
Copy link
Member

@lopopolo lopopolo commented Apr 8, 2022

Use a const assert macro to make the assertions easier to read.
Use ::BITS constants rather than size_of operator.

Use a const assert macro to make the assertions easier to read.
Use ::BITS constants rather than size_of operator.
@lopopolo lopopolo added C-quality Category: Refactoring, cleanup, and quality improvements. A-build-target Area: Support for builds of specific targets. labels Apr 8, 2022
@lopopolo lopopolo merged commit 8e57ab5 into trunk Apr 8, 2022
@lopopolo lopopolo deleted the lopopolo/const-assert-u32-usize-bits branch April 8, 2022 05:30
@lopopolo lopopolo mentioned this pull request Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-target Area: Support for builds of specific targets. C-quality Category: Refactoring, cleanup, and quality improvements.
Development

Successfully merging this pull request may close these issues.

1 participant