Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 64-bit to 32-bit integer conversion
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.
- Loading branch information