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

Make (1:3:4)[6148914691236517207] throw #50118

Merged
merged 2 commits into from
Jul 7, 2023
Merged

Make (1:3:4)[6148914691236517207] throw #50118

merged 2 commits into from
Jul 7, 2023

Conversation

LilithHafner
Copy link
Member

@LilithHafner LilithHafner commented Jun 9, 2023

This is two mostly separate changes. If either prove controversial I can separate them into two prs.

- make (1:3:4)[6148914691236517207] throw (and test) (fixes #26623)
- refactor range getindex

The bugfix likely has a slight performance penalty for non-BitInteger StepRanges indexed without @inbounds

@LilithHafner LilithHafner added kind:bugfix This change fixes an existing bug domain:ranges Everything AbstractRange kind:don't squash Don't squash merge labels Jun 9, 2023
@Seelengrab
Copy link
Contributor

possibly related? #45389

@LilithHafner LilithHafner removed the kind:don't squash Don't squash merge label Jun 15, 2023
@LilithHafner
Copy link
Member Author

bump

Copy link
Sponsor Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

It makes me vaguely uncomfortable to seem to need both widemul and checkbounds defined to use this getindex call, but I guess that is probably needed

@LilithHafner LilithHafner changed the title Make (1:3:4)[6148914691236517207] throw and refactor scalar range indexing Make (1:3:4)[6148914691236517207] throw Jul 7, 2023
@LilithHafner LilithHafner merged commit 085c3d1 into master Jul 7, 2023
2 checks passed
@LilithHafner LilithHafner deleted the range-indexing branch July 7, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:ranges Everything AbstractRange kind:bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bounds check in step range does not take into account overflow
3 participants