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

Fix assignment from 0-entry Vec: add test #580

Merged
merged 2 commits into from
Apr 15, 2017
Merged

Fix assignment from 0-entry Vec: add test #580

merged 2 commits into from
Apr 15, 2017

Conversation

aswaterman
Copy link
Member

I attempted to fix this in 8e4ddc6, but
that fix was incomplete, as my additional regression test shows. Since
then I found the root cause: 375e2b6
introduced a regression for bundles containing zero-entry Vecs. Until
zero-width UInts are supported, the zero-entry Vecs need to be flattened
out before doing asUInt/asTypeOf on a bundle. Undoing that commit's
replacement of Data.flatten with Aggregate.getElements is the best
interim fix.

It was an incomplete fix for handling Vec(0).
375e2b6 introduced a regression for bundles
containing zero-entry Vecs.  Until zero-width UInts are supported, the
zero-entry Vecs need to be flattened out before doing asUInt/asTypeOf on
a bundle.  Undoing that commit's replacement of Data.flatten with
Aggregate.getElements is the best interim fix.
@aswaterman aswaterman merged commit bb12fe7 into master Apr 15, 2017
@aswaterman aswaterman deleted the fix-vec0 branch April 15, 2017 07:00
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