-
Notifications
You must be signed in to change notification settings - Fork 528
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
BUG: C++ constant value gets serialized #529
Comments
The type provided for the constant is incorrect and thus was generating the wrong code. I've pushed a change to validate the types match. |
Hi there,
The "unit" is regular "uint8" constant type, but uses "valueRef" to specify its numeric value. I think other developers who read the spec may consider it to be valid and decide to use the same constructs in their schema. Maybe it's a good idea to support it in your compiler as well. I do support it in mine. |
… basic types and fix composite length calculation when using them. Issue #529.
…coded fields of constant presence. Issue #529.
Having the following enum definition
and message with single constant field
generates code that serializes the field:
while realizing that the field is constant:
The only difference from #528 is that the type of the field is specified "uint8" directly instead of "Enum1".
Reproduced with v1.7.4
The text was updated successfully, but these errors were encountered: