Skip to content

lib.data: accept negative int and slice for ArrayLayout indexing. #1439

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
Jun 29, 2024

Conversation

wanda-phi
Copy link
Member

As a side effect, makes iterating over ArrayLayout views work.

Fixes #1405.
Fixes #1418.

As a side effect, makes iterating over `ArrayLayout` views work.

Fixes amaranth-lang#1405.
Fixes amaranth-lang#1418.
@wanda-phi wanda-phi requested a review from whitequark as a code owner June 29, 2024 18:32
@whitequark whitequark added this to the 0.6 milestone Jun 29, 2024
Copy link
Member

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whitequark whitequark enabled auto-merge June 29, 2024 18:35
@whitequark whitequark added this pull request to the merge queue Jun 29, 2024
Merged via the queue into amaranth-lang:main with commit ef5c506 Jun 29, 2024
20 checks passed
@wanda-phi wanda-phi deleted the arraylayout-index branch June 29, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

View of ArrayLayout cannot be indexed with a negative int Views with an array layout should be indexable with a slice
2 participants