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

check length before converting to range type #102

Merged
merged 2 commits into from
Oct 19, 2024
Merged

Conversation

arnetheduck
Copy link
Member

The index type of an array is a range meaning that converting an out-of-bounds value to it will raise a Defect.

This PR fixes the defect but does nothing for arrays which are not "full" - probably, this should become an error.

The index type of an array is a `range` meaning that converting an
out-of-bounds value to it will raise a `Defect`.

This PR fixes the defect but does nothing for arrays which are not
"full" - probably, this should become an error.
@arnetheduck arnetheduck merged commit 6eadb6e into master Oct 19, 2024
18 checks passed
@arnetheduck arnetheduck deleted the array-parse branch October 19, 2024 09:28
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.

1 participant