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

Cast enum to int #1146

Merged
merged 2 commits into from
Aug 8, 2023
Merged

Cast enum to int #1146

merged 2 commits into from
Aug 8, 2023

Conversation

itf
Copy link
Contributor

@itf itf commented Aug 8, 2023

Allows the string displaying the enum to format it using %d.

Fixes the error:
error: format specifies type 'int' but the argument has type 'T' [-Werror,-Wformat]

Allows the string displaying the enum to format it using %d.

Fixes the error:
error: format specifies type 'int' but the argument has type 'T' [-Werror,-Wformat]
@itf itf requested a review from a team as a code owner August 8, 2023 16:38
@mlw mlw added this to the 2023.7 Release milestone Aug 8, 2023
@russellhancox russellhancox merged commit a9c1c73 into google:main Aug 8, 2023
9 checks passed
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.

3 participants