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

Delegate emit_enum_struct_variant calls to emit_enum_variant #89

Merged
merged 2 commits into from Nov 27, 2016

Conversation

@nbaksalyar
Copy link
Contributor

nbaksalyar commented Nov 23, 2016

read_enum_struct_variant delegates calls to read_enum_variant which expects u32 prefix to encode a variant number. Previous implementation of emit_enum_struct_variant doesn't emit it, making serialized data invalid.

read_enum_struct_variant delegates calls to read_enum_variant which
expects u32 prefix to encode a variant number. Previous implementation
of emit_enum_struct_variant doesn't emit it, making serialized data
invalid.
@TyOverby
Copy link
Collaborator

TyOverby commented Nov 25, 2016

Looks good, thanks for catching this! Could you add a regression test that would fail on this case?

@nbaksalyar
Copy link
Contributor Author

nbaksalyar commented Nov 26, 2016

Does it look better? :)

@TyOverby
Copy link
Collaborator

TyOverby commented Nov 27, 2016

Looks good, thanks!

@TyOverby TyOverby merged commit 7694f4d into servo:master Nov 27, 2016
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.