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

Fix 64-bit to 32-bit integer conversion #2

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

es1024
Copy link

@es1024 es1024 commented Feb 13, 2025

In a check for whether a value is valid for enum, protobuf loads the integer value as a 64 bit int, then calls EnumType_IsValid(value). But value is a int parameter, so this triggers warnings (promoted to error, since this is in generated code, not in library source, and we use -Werror in the main repo). The enum is already declared as enum EnumType : int, so load the integer value as 32 bit instead.

@es1024 es1024 merged commit bc70b5a into yugabyte:21.12-yb Feb 18, 2025
2 of 3 checks passed
@es1024 es1024 deleted the 21.12-yb branch February 18, 2025 19:33
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