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

repeated/packed negative enum fails #9

Open
kamahen opened this issue Jul 9, 2021 · 0 comments
Open

repeated/packed negative enum fails #9

kamahen opened this issue Jul 9, 2021 · 0 comments

Comments

@kamahen
Copy link
Member

kamahen commented Jul 9, 2021

It's uncommon, but a negative enum is allowed by the spec (because an enum is represented as a varint without zigzag encoding, it occupies the maximum length of 10 bytes).

test.proto has NegEnum = -1 but its use in tests is commented out.

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

No branches or pull requests

1 participant