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: to_a integer ranges with begin > end failing #6261

Merged
merged 1 commit into from May 9, 2024

Conversation

leviongit
Copy link
Contributor

example of failure:

(-1..-4).to_a
# => array size too big (ArgumentError)

expected result (by cruby):

(-1..-4).to_a
# => []

example of failure:
```rb
(-1..-4).to_a
```

expected result:
```rb
(-1..-4).to_a
```
@leviongit leviongit requested a review from matz as a code owner May 8, 2024 21:12
@github-actions github-actions bot added the core label May 8, 2024
@matz matz merged commit aac9e4c into mruby:master May 9, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants