Skip to content

Fix anonymous field index in range clause. #42

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

Merged
merged 1 commit into from
Jan 3, 2018
Merged

Fix anonymous field index in range clause. #42

merged 1 commit into from
Jan 3, 2018

Conversation

abursavich
Copy link
Contributor

Given the anonymousFields value []int{4, 5}, struct fields 0 and 1 were being decoded into instead of 4 and 5.

Given the anonymousFields value []int{4, 5}, struct fields 0 and 1 were being decoded into instead of 4 and 5.
@abursavich
Copy link
Contributor Author

FWIW, I didn't hit this bug in practice. I was just reading through the code.

oschwald added a commit that referenced this pull request Jan 3, 2018
@oschwald oschwald merged commit 384b9f2 into oschwald:master Jan 3, 2018
@oschwald
Copy link
Owner

oschwald commented Jan 3, 2018

💯 Nice catch! I updated the tests so that this is tested as well.

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