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: ensure LDLogLevel is at least 32 bits wide #415

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Jun 13, 2024

C++ compilers (specifically clang) complain that static_cast<LDLogLevel>(some_value_outside_range_of_defined_enum_values) is UB. To fix this, add a value to the enum forcing the valid range to be 32 bits.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review June 17, 2024 20:45
@cwaldren-ld cwaldren-ld requested a review from a team June 17, 2024 20:45
@cwaldren-ld cwaldren-ld force-pushed the cw/sc-247278/macos-enum-compilation branch from 318b630 to e95c4f6 Compare June 18, 2024 16:40
@cwaldren-ld cwaldren-ld changed the title fix: ensure LDLogLevel is at least 32 bits wide refactor: ensure LDLogLevel is at least 32 bits wide Jun 18, 2024
@cwaldren-ld cwaldren-ld merged commit 811cece into main Jun 18, 2024
21 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sc-247278/macos-enum-compilation branch June 18, 2024 17:00
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.

2 participants