Skip to content

fix: to_a integer ranges with begin > end failing#6261

Merged
matz merged 1 commit into
mruby:masterfrom
leviongit:range/to_a
May 9, 2024
Merged

fix: to_a integer ranges with begin > end failing#6261
matz merged 1 commit into
mruby:masterfrom
leviongit:range/to_a

Conversation

@leviongit

Copy link
Copy Markdown
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
@leviongit leviongit deleted the range/to_a branch January 26, 2025 03:51
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.

2 participants